Mask Generation
Transformers
Safetensors
falcon_perception
text-generation
falcon
segmentation
vision-language
open-vocabulary
custom_code
Eval Results
Instructions to use tiiuae/Falcon-Perception with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tiiuae/Falcon-Perception with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="tiiuae/Falcon-Perception", trust_remote_code=True)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("tiiuae/Falcon-Perception", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -45,7 +45,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
| 45 |
"tiiuae/falcon-perception",
|
| 46 |
trust_remote_code=True,
|
| 47 |
torch_dtype=torch.bfloat16,
|
| 48 |
-
device_map="
|
| 49 |
)
|
| 50 |
|
| 51 |
image = Image.open("photo.jpg")
|
|
|
|
| 45 |
"tiiuae/falcon-perception",
|
| 46 |
trust_remote_code=True,
|
| 47 |
torch_dtype=torch.bfloat16,
|
| 48 |
+
device_map={"": "cuda:0"},
|
| 49 |
)
|
| 50 |
|
| 51 |
image = Image.open("photo.jpg")
|