Update README.md
Browse files
README.md
CHANGED
|
@@ -21,7 +21,7 @@ With its advanced reasoning capabilities and superior performance on geospatial
|
|
| 21 |
<!--  -->
|
| 22 |
|
| 23 |
<p align="center">
|
| 24 |
-
<img src="https://huggingface.co/jquenum/LISAt-7b/resolve/main/LISAt.png" width="
|
| 25 |
</p>
|
| 26 |
|
| 27 |
- **Training data**: we introduce the Geospatial Reasoning Segmentation Dataset (GRES), a collection of vision and language data designed around
|
|
@@ -76,7 +76,8 @@ Once your installation is updated, you can use LISAT-7B for inference as follows
|
|
| 76 |
|
| 77 |
This will render as a properly formatted Python code snippet in Markdown. When you view it in a Markdown-rendering environment, it will look like this:
|
| 78 |
|
| 79 |
-
|
|
|
|
| 80 |
|
| 81 |
# Load model and tokenizer
|
| 82 |
model = AutoModelForImageSegmentation.from_pretrained("jquenum/LISAt-7b")
|
|
@@ -87,7 +88,8 @@ input_image = "path/to/your/image.png" # Replace with your input image
|
|
| 87 |
inputs = tokenizer(input_image, return_tensors="pt")
|
| 88 |
|
| 89 |
# Generate segmentation or other tasks
|
| 90 |
-
outputs = model.generate(**inputs)
|
|
|
|
| 91 |
|
| 92 |
|
| 93 |
## Intended Use
|
|
|
|
| 21 |
<!--  -->
|
| 22 |
|
| 23 |
<p align="center">
|
| 24 |
+
<img src="https://huggingface.co/jquenum/LISAt-7b/resolve/main/LISAt.png" width="350"/>
|
| 25 |
</p>
|
| 26 |
|
| 27 |
- **Training data**: we introduce the Geospatial Reasoning Segmentation Dataset (GRES), a collection of vision and language data designed around
|
|
|
|
| 76 |
|
| 77 |
This will render as a properly formatted Python code snippet in Markdown. When you view it in a Markdown-rendering environment, it will look like this:
|
| 78 |
|
| 79 |
+
```python
|
| 80 |
+
from transformers import AutoModelForImageSegmentation, AutoTokenizer
|
| 81 |
|
| 82 |
# Load model and tokenizer
|
| 83 |
model = AutoModelForImageSegmentation.from_pretrained("jquenum/LISAt-7b")
|
|
|
|
| 88 |
inputs = tokenizer(input_image, return_tensors="pt")
|
| 89 |
|
| 90 |
# Generate segmentation or other tasks
|
| 91 |
+
outputs = model.generate(**inputs)
|
| 92 |
+
|
| 93 |
|
| 94 |
|
| 95 |
## Intended Use
|