Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -21,7 +21,7 @@ title = "InstructCV"
|
|
21 |
|
22 |
description = """
|
23 |
<p style='text-align: center'> <a href='https://huggingface.co/spaces/yulu2/InstructCV/' target='_blank'>Project Page</a> | <a href='https://arxiv.org' target='_blank'>Paper</a> | <a href='https://github.com' target='_blank'>Code</a></p>
|
24 |
-
Gradio demo for InstructCV:
|
25 |
You may upload any images you like and try to let the model do vision tasks following your intent. \n
|
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
|
@@ -135,7 +135,7 @@ def main():
|
|
135 |
interactive=True,
|
136 |
)
|
137 |
|
138 |
-
seed = gr.Number(value=
|
139 |
text_cfg_scale = gr.Number(value=7.5, label=f"Text weight", interactive=False)
|
140 |
image_cfg_scale = gr.Number(value=1.5, label=f"Image weight", interactive=False)
|
141 |
|
|
|
21 |
|
22 |
description = """
|
23 |
<p style='text-align: center'> <a href='https://huggingface.co/spaces/yulu2/InstructCV/' target='_blank'>Project Page</a> | <a href='https://arxiv.org' target='_blank'>Paper</a> | <a href='https://github.com' target='_blank'>Code</a></p>
|
24 |
+
Gradio demo for InstructCV: Instruction-Tuned Text-to-Image Diffusion Models As Vision Generalists. \n
|
25 |
You may upload any images you like and try to let the model do vision tasks following your intent. \n
|
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
|
|
|
135 |
interactive=True,
|
136 |
)
|
137 |
|
138 |
+
seed = gr.Number(value=67265, precision=0, label="Seed", interactive=True)
|
139 |
text_cfg_scale = gr.Number(value=7.5, label=f"Text weight", interactive=False)
|
140 |
image_cfg_scale = gr.Number(value=1.5, label=f"Image weight", interactive=False)
|
141 |
|