News for hackers. Stuff that matters.
Re:New AI edits images based on text instructions (instructP... by bryced on Monday January 23, 2023 @08:45AM (#34488637)
> 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?

Re:New AI edits images based on text instructions (instructP... by sseagull on Monday January 23, 2023 @09:07AM (#34488844)
> 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.

Re:New AI edits images based on text instructions (instructP... by bryced on Monday January 23, 2023 @09:13AM (#34488914)
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.

Re:New AI edits images based on text instructions (instructP... by goffi on Monday January 23, 2023 @09:53AM (#34489425)
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.

Re:New AI edits images based on text instructions (instructP... by bryced on Monday January 23, 2023 @10:25AM (#34489883)
There is a smart mask feature. Add `--mask-prompt face --mask-mode keep`. I believe it outputs the masks as well