Spaces:
Runtime error
Runtime error
update lightweight code
Browse files- .gitattributes +1 -0
- app.py +2 -2
.gitattributes
CHANGED
@@ -32,3 +32,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
32 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
33 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
34 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
35 |
+
pretrained_models/sam_vit_b_01ec64.pth filter=lfs diff=lfs merge=lfs -text
|
app.py
CHANGED
@@ -132,8 +132,8 @@ interface = gr.Interface(
|
|
132 |
Image.txt. This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
133 |
\n Github: https://github.com/showlab/Image2Paragraph
|
134 |
\n Twitter: https://twitter.com/awinyimgprocess/status/1646225454599372800?s=46&t=HvOe9T2n35iFuCHP5aIHpQ
|
135 |
-
\n
|
136 |
-
\n Ttext2image model is controlnet
|
137 |
\n To speed up, we generate image with small size 384, run the code local for high-quality sample.
|
138 |
"""
|
139 |
)
|
|
|
132 |
Image.txt. This code support image to text transformation. Then the generated text can do retrieval, question answering et al to conduct zero-shot.
|
133 |
\n Github: https://github.com/showlab/Image2Paragraph
|
134 |
\n Twitter: https://twitter.com/awinyimgprocess/status/1646225454599372800?s=46&t=HvOe9T2n35iFuCHP5aIHpQ
|
135 |
+
\n For online demo, we use smallest model to speed up. For better result, look for github for details.
|
136 |
+
\n Ttext2image model is controlnet, which used canny edge as reference.
|
137 |
\n To speed up, we generate image with small size 384, run the code local for high-quality sample.
|
138 |
"""
|
139 |
)
|