yulu2 commited on
Commit
b4f833e
1 Parent(s): a7fefdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -15
app.py CHANGED
@@ -26,20 +26,6 @@ You may upload any images you like and try to let the model do vision tasks foll
26
  Some examples: You could use "Segment the dog" for segmentation, "Detect the dog" for object detection, "Estimate the depth map of this image" for depth estimation, etc.
27
  """ # noqa
28
 
29
- Intro_text = """
30
- This space showcases a demo for our paper titled "InstructCV: Towards Universal Text-to-Image Vision Generalists." We are excited to present some impressive features of our model:
31
-
32
- 1. Zero-shot Capability:
33
- * Our model was trained on the MS-COCO, NYUv2, Oxford-Pets, and ADE20k datasets. However, it is not limited to these datasets. You can upload any image of your choice and prompt the model to perform various vision tasks, even if they were not part of the original training set.
34
-
35
- 2. Semantic Disentangling:
36
- * Our model excels at handling diverse languages and instructions for different vision tasks. You can provide instructions in different languages without worrying about task confusion. The model can effectively disentangle the semantics and understand each task separately.
37
-
38
- 3. Category / Data Generalization:
39
- * Feel free to explore any category and experiment with images of different styles. While our model generally performs well, please note that it may not always provide optimal results for all cases. Nonetheless, we encourage you to test its capabilities across various categories and styles.
40
-
41
- """
42
-
43
 
44
  example_instructions = [
45
  "Please help me detect Buzz.",
@@ -154,7 +140,7 @@ def main():
154
  image_cfg_scale = gr.Number(value=1.5, label=f"Image weight", interactive=False)
155
 
156
 
157
- gr.Markdown(Intro_text)
158
 
159
  load_button.click(
160
  fn=load_example,
 
26
  Some examples: You could use "Segment the dog" for segmentation, "Detect the dog" for object detection, "Estimate the depth map of this image" for depth estimation, etc.
27
  """ # noqa
28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
 
30
  example_instructions = [
31
  "Please help me detect Buzz.",
 
140
  image_cfg_scale = gr.Number(value=1.5, label=f"Image weight", interactive=False)
141
 
142
 
143
+ # gr.Markdown(Intro_text)
144
 
145
  load_button.click(
146
  fn=load_example,