showlab / Image2Paragraph

[A toolbox for fun.] Transform Image into Unique Paragraph with ChatGPT, BLIP2, OFA, GRIT, Segment Anything, ControlNet.
Apache License 2.0
789 stars 53 forks source link

convert image to RGB in edit_anything_model.py #14

Open adfwer233 opened 1 year ago

adfwer233 commented 1 year ago

When the input format is RGBA or grayscale, the demo will fail. Add convert image to RGB in edit_anything_model.py to fix this issue