Update README.md
Browse files
README.md
CHANGED
@@ -5,8 +5,126 @@ base_model:
|
|
5 |
---
|
6 |
|
7 |
|
8 |
-
# LISA
|
9 |
|
10 |
|
11 |
🤗[Data](https://huggingface.co/collections/Senqiao/lisa-67713837a32d6abf516a162e) | 📄[Paper](https://arxiv.org/abs/2312.17240)
|
12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
---
|
6 |
|
7 |
|
8 |
+
# LISA++ (LISA_Plus_7b): An Improved Baseline for Reasoning Segmentation with Large Language Model
|
9 |
|
10 |
|
11 |
🤗[Data](https://huggingface.co/collections/Senqiao/lisa-67713837a32d6abf516a162e) | 📄[Paper](https://arxiv.org/abs/2312.17240)
|
12 |
|
13 |
+
# Model Card for LISA++ (LISA_Plus_7b)
|
14 |
+
|
15 |
+
## Model Details
|
16 |
+
|
17 |
+
- **Developed by**: Senqiao Yang, The Chinese University of Hong Kong & SmartMore
|
18 |
+
- **Model Type**: Large Vision-Language Model (VLM) for reasoning segmentation
|
19 |
+
- **Language(s)**: Supports natural language queries in English
|
20 |
+
- **License**: Apache 2.0
|
21 |
+
- **Base Model**: Finetuned from [liuhaotian/llava-v1.5-7b](https://huggingface.co/liuhaotian/llava-v1.5-7b)
|
22 |
+
|
23 |
+
## Model Description
|
24 |
+
|
25 |
+
LISA++ (LISA_Plus_7b) is an improved baseline for reasoning segmentation with large language models. It enhances the capabilities of its predecessor by incorporating instance segmentation and enabling more natural, multi-turn dialogues through Segmentation in Dialogue (SiD). These advancements are achieved without structural changes or additional data sources, relying instead on curated samples from existing segmentation datasets.
|
26 |
+
|
27 |
+
### Key Enhancements:
|
28 |
+
|
29 |
+
1. **Instance Segmentation**: Differentiates between different instances of the same category, providing more detailed scene analysis alongside existing multi-region semantic segmentation.
|
30 |
+
2. **Segmentation in Dialogue (SiD)**: Improved capability for multi-turn dialogue, allowing the model to incorporate segmentation results directly into text responses, leading to more natural and flexible conversations.
|
31 |
+
3. **Refined Data Curation**: Uses datasets like COCO and ADE20K to improve segmentation and dialogue integration.
|
32 |
+
|
33 |
+
## Intended Uses & Limitations
|
34 |
+
|
35 |
+
### Direct Use
|
36 |
+
- Interactive image understanding and segmentation
|
37 |
+
- Multi-turn reasoning about segmented objects in images
|
38 |
+
- Visual question-answering with spatial awareness
|
39 |
+
|
40 |
+
### Out-of-Scope Use
|
41 |
+
- Real-time medical or security applications without further validation
|
42 |
+
- Applications requiring precise 3D object segmentation
|
43 |
+
|
44 |
+
## How to Use
|
45 |
+
|
46 |
+
As of now, the model is not available via the Hugging Face Inference API. To use locally:
|
47 |
+
|
48 |
+
```python
|
49 |
+
from transformers import pipeline
|
50 |
+
|
51 |
+
# Load LISA++
|
52 |
+
model = pipeline("image-segmentation", model="LISA_Plus_7b")
|
53 |
+
|
54 |
+
# Example usage
|
55 |
+
image_path = "example.jpg"
|
56 |
+
query = "Highlight all the cats in the image."
|
57 |
+
result = model(image_path, query)
|
58 |
+
print(result)
|
59 |
+
```
|
60 |
+
|
61 |
+
For further details, refer to the [model repository](https://huggingface.co/Senqiao/LISA_Plus_7b).
|
62 |
+
|
63 |
+
## Training Data
|
64 |
+
|
65 |
+
LISA++ is trained on curated samples from:
|
66 |
+
|
67 |
+
- **COCO Dataset**: Common Objects in Context
|
68 |
+
- **ADE20K Dataset**: Scene parsing dataset
|
69 |
+
- **Extended ReasonSeg Dataset**: Enhanced for multi-target instance segmentation
|
70 |
+
|
71 |
+
The training data is structured to improve segmentation and dialogue capabilities.
|
72 |
+
|
73 |
+
## Training Procedure
|
74 |
+
|
75 |
+
- **Base Model**: Finetuned from [liuhaotian/llava-v1.5-7b](https://huggingface.co/liuhaotian/llava-v1.5-7b)
|
76 |
+
- **Optimizer**: [Specify optimizer, e.g., AdamW]
|
77 |
+
- **Training Steps**: Trained on ReasonSeg-Inst and ReasonSeg-Sem datasets
|
78 |
+
- **Hardware**: Trained on GPUs [Specify model, e.g., NVIDIA A100]
|
79 |
+
- **Loss Functions**: Combination of segmentation and language modeling losses
|
80 |
+
|
81 |
+
## Evaluation Results
|
82 |
+
|
83 |
+
LISA++ significantly improves segmentation accuracy compared to its predecessor:
|
84 |
+
|
85 |
+
- **ReasonSeg-Inst (Instance Segmentation Performance)**:
|
86 |
+
- AP50: **34.1%** (vs. 13.7% in LISA-7B)
|
87 |
+
- AP75: **22.1%** (vs. 6.6% in LISA-7B)
|
88 |
+
- mAP: **21.5%** (vs. 7.2% in LISA-7B)
|
89 |
+
|
90 |
+
- **ReasonSeg-Sem (Semantic Segmentation Performance)**:
|
91 |
+
- gIoU: **64.2%** (vs. 53.6% in LISA)
|
92 |
+
- cIoU: **68.1%** (vs. 52.3% in LISA)
|
93 |
+
|
94 |
+
These results highlight LISA++'s enhanced capabilities in both instance and semantic segmentation tasks.
|
95 |
+
|
96 |
+
## Bias, Risks, and Limitations
|
97 |
+
|
98 |
+
- **Bias**: The model's performance is limited by biases in training datasets (COCO, ADE20K).
|
99 |
+
- **Limitations**: May struggle with unseen object categories or highly cluttered scenes.
|
100 |
+
- **Ethical Considerations**: Users should verify outputs before deploying in critical applications.
|
101 |
+
|
102 |
+
## Environmental Impact
|
103 |
+
|
104 |
+
- **Hardware Used**: NVIDIA A100 GPUs (or equivalent)
|
105 |
+
- **Training Duration**: [Specify training time, if available]
|
106 |
+
- **Estimated Carbon Emissions**: [Estimate, if available]
|
107 |
+
|
108 |
+
## Citation
|
109 |
+
|
110 |
+
If you use LISA_Plus_7b in your research, please cite:
|
111 |
+
|
112 |
+
```
|
113 |
+
@article{yang2024lisa++,
|
114 |
+
title={LISA++: An Improved Baseline for Reasoning Segmentation with Large Language Model},
|
115 |
+
author={Senqiao Yang},
|
116 |
+
journal={arXiv preprint arXiv:2312.17240},
|
117 |
+
year={2024}
|
118 |
+
}
|
119 |
+
```
|
120 |
+
|
121 |
+
## Contact Information
|
122 |
+
|
123 |
+
For questions or feedback, contact:
|
124 |
+
|
125 |
+
- **Author**: Senqiao Yang
|
126 |
+
|
127 |
+
---
|
128 |
+
|
129 |
+
This AI generated model card provides an overview of LISA_Plus_7b's capabilities, training methodology, and evaluation metrics, reflecting the latest updates from the Hugging Face model repository and arXiv paper.
|
130 |
+
|