Show HN: New AI edits images based on text instructions (opens in a new tab)github.com
1098 pointsThis works suprisingly well. Just give it instructions like "make it winter" or "remove the cars" and the photo is altered.
Here are some examples of transformations it can make:
Golden gate bridge: https://raw.githubusercontent.com/brycedrennan/imaginAIry/ma...
Girl with a pearl earring: https://raw.githubusercontent.com/brycedrennan/imaginAIry/ma...
I integrated this new InstructPix2Pix model into imaginAIry (python library) so it's easy to use for python developers.
Comments (227) 59 threads
Earlier commentsA few questions:
- would it be possible to use this tool to make automatic mask for editing in something like GIMP (for instance, if I want to automatically mask the hair)?
- would it be possible to have a REPL or something else to make several prompt on the same image? Loading the model takes time, and it would be great to be able to just do it once.
- how about a small GUI or webui to have the preview immediately? Maybe it's not the goal of this project and using `instruct-pix2pix` directly with its webui is more appropriate?
Thanks for the work (including upstream people for the research paper and pix2pix), and for sharing.
probably but GIMP plugins are not something I've looked into
> REPL
already done. just type `aimg` and you're good to go
> GUI
GUIs add a lot of complexity. Can your file manager do thumbnails and quick previews?
Somewhat OT, but I find this really funny. It says a lot about the difficulty of using various ecosystems and where communities spend time polishing things.
"Yeah, I made something that takes natural language and can do things like change seasons in an image. But a GUI? That's complicated!"
It's not a criticism of you, but the different ecosystems and what programmers like to focus on nowadays.
It's not just that GUI's are hard, it's that the "customer" base will inevitably be much less technical and I'd receive a lot more difficult to resolve bug reports. So no-gui is also a way of staying focused on more interesting parts of the project.
> probably but GIMP plugins are not something I've looked into
I was just thinking about a black and white or grey level output image with the desired area , no need to integrate it in GIMP of whatever. I've tried a prompt like "keep only the face", but no luck so far.
It could be random and my imagination, but seems that way.
Aaarrrgghh let me know when it's down to 4GB like Stable Diffusion
The prompt-based masking sounds incredible, with either pixel +/- or Prompt Relevance +/-
VERY impressive img2img capabilities!
All comments shown.
Couldn't load more comments. Check your connection and try again.