Lurker News
This 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 comments
goffi1 reply#
Wow that's really impressive (I've seen similar things in research papers for a while now, but having it usable so easily and generic is great).

A 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.

bryced2 replies#
> would it be possible to use this tool to make automatic mask for editing in something like GIMP

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?

sseagull1 reply#
> 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.

bryced#
Fair but I'd point out I also didn't make the algorithm that changes photos. I'm wrapping a bunch of algorithms that other people made in a way that makes them easy to use.

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.

goffi1 reply#
thanks for the quick answer and cool for REPL. Yeah sure I can just launch Gwenview on the output directory.

> 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.

bryced#
There is a smart mask feature. Add `--mask-prompt face --mask-mode keep`. I believe it outputs the masks as well
airbreather#
I'm getting mixed results, and for a given topic it seems to invariably give a better result first time you ask, then not so good if you ask again.

It could be random and my imagination, but seems that way.

nmstoker#
Looks really interesting, although my immediate thought with "-fix-faces" is how long before someone manages to do something inappropriate and whip up a storm about this.
nullish_signal3 replies#
>11GB VRAM

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!

bryced#
It is stable diffusion but yes my fork does not have the memory optimizations needed to run it on only 4gb
do_anh_tu2 replies#
Or, if there is a Colab version, I’d happy to pay Google for premium GPU.
eega#
Well, just open a new GPU Colab and create a cell mit „!pip install imaginairy“ and you should be good to go …
NavinF1 reply#
You can get a used 2080Ti for under $300 on eBay
smcleod1 reply#
That's a lot of money for most people. It also means they have to have a PC to put it in.
nullish_signal#
Thank you for your sensical response... Very happy with my 6GB VRAM card and don't have $300 lying around to use on a git repo that will probably be slimmed down in a month or two

Load more comments