Comments (4)
Thanks @0xdevalias and @ProGamerGov !! Fix has been applied now 👍
from clip-interrogator.
I ran into the same problem with PNGs that had alpha channels - you can remove the alpha channel with imagemagick:
convert input.png -alpha off output.png
from clip-interrogator.
This is the section of code that handles the image stuff, if you provide a URL it uses .convert('RGB')
, but if you upload the file directly it doesn't:
clip-interrogator/clip_interrogator.ipynb
Lines 313 to 324 in 2486589
By changing this line:
image = Image.open(io.BytesIO(file_info['content']))\n",
to
image = Image.open(io.BytesIO(file_info['content'])).convert('RGB')\n",
It should automatically convert the image to remove the alpha channel.
(Answer found on this StackOverflow answer)
from clip-interrogator.
Thanks, I'll test and fix now
from clip-interrogator.
Related Issues (20)
- Only keeping flavors.txt and removing other data files HOT 1
- Clip Interrogator EXT issue - incorrect prompt
- Interrogator 1: RuntimeError: The size of tensor a (3) must match the size of tensor b (9) at non-singleton dimension 0
- How to speed up? Which torch version is suggested HOT 3
- How to set lowvram mode on via settings?
- two errors
- Prompt generation issiue
- timing interrogation
- Is there any way to only return caption without tag
- Error occurred when executing ClipInterrogator: Remote end closed connection without response HOT 1
- Easy way to locate and delete the CLIP models?
- cannot find python: which version HOT 1
- Are there any expansion plans for comfyui? HOT 6
- run_cli.py just freezes? import open_clip freezes? HOT 1
- Exception <class 'RuntimeError'> HOT 4
- Does clip-interrogator have built-in queue processing? HOT 1
- Downloads BLIP Checkpoint every time HOT 2
- What does "Ranking against your own list of terms?" mean?
- SD crashed after install CLIP, how to fix it or remove it?
- Loading flavors.txt is very slow HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clip-interrogator.