Awiny commited on
Commit
455b8f2
β€’
1 Parent(s): b25eb4e

update lightweight code

Browse files
Files changed (2) hide show
  1. .gitattributes +1 -0
  2. 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 Since GPU is expensive, we use CPU for demo and not include semantic segment anything. Run code local with gpu or google colab we provided for fast speed.
136
- \n Ttext2image model is controlnet ( very slow in cpu(~2m)), 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
  )
 
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
  )