TheaterFire

I Built My Wife a Simple Web App for Image Editing Using Flux Kontext—Now It’s Open Source

Posted by XMasterrrr@reddit | LocalLLaMA | View on Reddit | 77 comments

I Built My Wife a Simple Web App for Image Editing Using Flux Kontext—Now It’s Open Source

Reply to Post

77 Comments

patrakov@reddit

To everyone: this project is not validly licensed. Don't use it. AGPL 3.0 prohibits the author from imposing additional restrictions on the use of the software, and the README contains this: "**Non-Commercial Use Only:** Commercial use of this software is **not permitted** without an explicit, written license from the author." Dear author: please contact a lawyer, discard all external contributions and GPLed dependencies accumulated so far, and relicense it under a proprietary license not based on AGPL, which would then legitimise the prohibition of commercial use that still complies with AGPL terms. Alternatively, drop the restriction.
View on Reddit #61082919

rorowhat@reddit

it would be great if it could run on 8GB systems.
View on Reddit #61054076

ConfidentTrifle7247@reddit

Very cool!
View on Reddit #60979669

speed_rabbit@reddit

Look forward to giving it a try once Windows setup is worked out!
View on Reddit #60736284

XMasterrrr@reddit (OP)

It should be all good now, migrated to `uv` completely. If you have time to test it that'd be appreciated.
View on Reddit #60741191

r4in311@reddit

Looks really cool, would be amazing to have a docker image for easier installation :)
View on Reddit #60558033

ei23fxg@reddit

but! uv is super easy too. try it!
View on Reddit #60575963

hukkaja@reddit

Did you try it and got it working? I didn't, running into multiple errors while installing requirements. I am on windows.
View on Reddit #60588758

ei23fxg@reddit

yes, just needed to login huggingface. beside that, its working
View on Reddit #60677296

amroamroamro@reddit

it looks like the `requirements.txt` file was "frozen" from the author's environment (non-windows) I haven't tested this, but you could try installing just the direct dependencies without all the transient ones, from a quick look I think the list of needed packages is: flask flask-cors python-dotenv loguru pillow torch diffusers dfloat11 maybe try without the pinned versions
View on Reddit #60604249

XMasterrrr@reddit (OP)

One second
View on Reddit #60558355

ShinyAnkleBalls@reddit

RemindMe! 24 hours
View on Reddit #60559247

RemindMeBot@reddit

I will be messaging you in 1 day on [**2025-07-03 20:45:07 UTC**](http://www.wolframalpha.com/input/?i=2025-07-03%2020:45:07%20UTC%20To%20Local%20Time) to remind you of [**this link**](https://www.reddit.com/r/LocalLLaMA/comments/1lq5fqq/i_built_my_wife_a_simple_web_app_for_image/n10c5ho/?context=3) [**CLICK THIS LINK**](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5Bhttps%3A%2F%2Fwww.reddit.com%2Fr%2FLocalLLaMA%2Fcomments%2F1lq5fqq%2Fi_built_my_wife_a_simple_web_app_for_image%2Fn10c5ho%2F%5D%0A%0ARemindMe%21%202025-07-03%2020%3A45%3A07%20UTC) to send a PM to also be reminded and to reduce spam. ^(Parent commenter can ) [^(delete this message to hide from others.)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Delete%20Comment&message=Delete%21%201lq5fqq) ***** |[^(Info)](https://www.reddit.com/r/RemindMeBot/comments/e1bko7/remindmebot_info_v21/)|[^(Custom)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=Reminder&message=%5BLink%20or%20message%20inside%20square%20brackets%5D%0A%0ARemindMe%21%20Time%20period%20here)|[^(Your Reminders)](https://www.reddit.com/message/compose/?to=RemindMeBot&subject=List%20Of%20Reminders&message=MyReminders%21)|[^(Feedback)](https://www.reddit.com/message/compose/?to=Watchful1&subject=RemindMeBot%20Feedback)| |-|-|-|-|
View on Reddit #60559317

MajesticCoffee5066@reddit

Remind me in 1 day
View on Reddit #60644134

MrNemobody@reddit

RemindMe! 1 second
View on Reddit #60577377

hukkaja@reddit

Thanks.
View on Reddit #60564553

vertigo235@reddit

Yes Please
View on Reddit #60563288

ModPiracy_Fantoski@reddit

FYI: Windows isn't supported, requirements.txt problems.
View on Reddit #60577842

XMasterrrr@reddit (OP)

I'll try my best to have it supported soon, hopefully before the end of this long weekend
View on Reddit #60652164

ModPiracy_Fantoski@reddit

I got it working. I essentially removed the requirements that caused errors ( I can give you the requirements.txt file tomorrow if you want ) and then used a Python311 environment, worked like a charm, with Cuda.
View on Reddit #60657771

XMasterrrr@reddit (OP)

On the roadmap
View on Reddit #60652131

HOLUPREDICTIONS@reddit

Congrats on post of the day! [https://x.com/LocalLlamaSub/status/1940911782358569179](https://x.com/LocalLlamaSub/status/1940911782358569179)
View on Reddit #60654372

yzmizeyu@reddit

Dude, this is sick! Thanks for open-sourcing it.
View on Reddit #60576578

XMasterrrr@reddit (OP)

Thank you :)
View on Reddit #60652171

aadoop6@reddit

DFloat11 sounds interesting. What other similar techniques are currently available?
View on Reddit #60584748

XMasterrrr@reddit (OP)

I am not aware of any other that is as performant.
View on Reddit #60652102

_mauropasan@reddit

I was just installing it right now and got this critical error, do I have to use the env file to use any access token? https://preview.redd.it/fe1rbds7jqaf1.png?width=960&format=png&auto=webp&s=cc9c39c9eaeb147bd54d91253cb97769526703e8
View on Reddit #60651282

XMasterrrr@reddit (OP)

Yes! I have it in the readme that you need to either login with huggingface-cli tool or to grab a token and set that in the .env You probably need to request access to the model itself, which is usually granted immediately, on their huggingface model page https://huggingface.co/black-forest-labs/FLUX.1-Kontext-dev
View on Reddit #60651402

_mauropasan@reddit

Yeah, just found it and done it, thanks for the help👍🏻
View on Reddit #60652079

kkazakov@reddit

I have 16GB 4070TI Super. However, I can't run anything. It complains there's not enough VRAM. What I can do about it? 2025-07-03 08:03:23.847 | ERROR | \_\_main\_\_:image\_generation\_worker:315 - Job 828450ba-77b6-46e3-958b-48fafa4b6032 failed: Processing failed due to insufficient GPU memory. Try a smaller image size or reduce batch size. - CUDA out of memory. Tried to allocate 136.00 MiB. GPU 0 has a total capacity of 15.55 GiB of which 163.44 MiB is free. Process 24097 has 48.21 MiB memory in use. Including non-PyTorch memory, this process has 14.53 GiB memory in use. Of the allocated memory 14.17 GiB is allocated by PyTorch, and 104.61 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH\_CUDA\_ALLOC\_CONF=expandable\_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
View on Reddit #60586810

XMasterrrr@reddit (OP)

I have it on the roadmap to add hardware auto-detect and decide which GGUF to use based on that.
View on Reddit #60652054

TCaschy@reddit

same for me trying to run on 3060 12gb (I know)
View on Reddit #60587708

Ensirius@reddit

This looks very cool I like the colors
View on Reddit #60588959

XMasterrrr@reddit (OP)

:)
View on Reddit #60652026

Careless_Garlic1438@reddit

Nice! is macOS supported? If yes is GPU supported (mps backend)
View on Reddit #60594329

XMasterrrr@reddit (OP)

Thank you! It's on the roadmap
View on Reddit #60652014

Reasonable_Brief578@reddit

Nice
View on Reddit #60602053

XMasterrrr@reddit (OP)

:)
View on Reddit #60651998

xpnrt@reddit

Oom's even with 16gb. Tried fp8 version ,cpu offloading still not enough.
View on Reddit #60603100

XMasterrrr@reddit (OP)

Working on adding better hardware detection and picking up proper GGUFs based on that.
View on Reddit #60651987

busylivin_322@reddit

Looks great. Any reason why it wouldn’t work on apple silicon? Or there might be perf issues?
View on Reddit #60609539

XMasterrrr@reddit (OP)

Unfortunately only Nvidia GPUs are supported at the moment. I'll try to have Apple Silicon on the roadmap.
View on Reddit #60651943

Blizado@reddit

Very cool. But it may be time for me to touch grass... I first was reading only "I Built my wife". ;)
View on Reddit #60556962

JustSayin_thatuknow@reddit

🤣
View on Reddit #60648365

Gualuigi@reddit

Was hoping for the same.
View on Reddit #60633173

okurman@reddit

… built my own wife, with blackjak and.. ah no it was another story :)
View on Reddit #60625513

__JockY__@reddit

“If your girl’s into teams we can split dat, and if she likes Cristal we can sip dat” — Aim
View on Reddit #60560634

pepe256@reddit

Cristal as in the Peruvian beer?
View on Reddit #60567364

Environmental-Metal9@reddit

Or the meth
View on Reddit #60602483

a_beautiful_rhind@reddit

Just your brain completing the most probable next word from the context. "I built my wife" are top tokens here.
View on Reddit #60564907

Environmental-Metal9@reddit

Top_k=20
View on Reddit #60602432

anshulsingh8326@reddit

You can do that for me ?
View on Reddit #60591877

Won3wan32@reddit

You need lower your temp, your LLM is too random
View on Reddit #60583885

TimeSalvager@reddit

See comment below, AI coming to chop your grass.
View on Reddit #60561682

MausRundung@reddit

It bugs me so much that not all buttons are the same size
View on Reddit #60611365

Freonr2@reddit

Just a heads up, your NC clause makes this **not open source**. Also, AGPL itself says such terms can simply be removed: Under sectoin 7 > All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. Part of open source is being permissive of commercial use. If it forbids commercial use, it's not open source.
View on Reddit #60603067

XMasterrrr@reddit (OP)

Link to GH Repo: [https://github.com/TheAhmadOsman/4o-ghibli-at-home](https://github.com/TheAhmadOsman/4o-ghibli-at-home)
View on Reddit #60555008

dbuildofficial@reddit

very cool ! I love it ! i was looking for an easier way to generate images than the whole "war machine setup" I found online or shelling coins out ! I'd like to add image generation support in my project ( LiteChat ) Do you mind if I "inspire" myself of your image generation stuff to create some kind of local API server ? it'll be a separate repo so I'll definitly license it the same as you :)
View on Reddit #60602641

nothaiwei@reddit

does it always edit the entire image or can it do parts
View on Reddit #60567569

slpreme@reddit

mask?
View on Reddit #60575291

nothaiwei@reddit

does it have it then?
View on Reddit #60596639

slpreme@reddit

no you need photoshop skills
View on Reddit #60596679

nothaiwei@reddit

not quite an image editor is it then
View on Reddit #60599461

slpreme@reddit

stylier
View on Reddit #60600506

TSG-AYAN@reddit

The UI looks very nice. any plans to support A1111 or ComfyUI API instead of loading the model by itself?
View on Reddit #60575485

godndiogoat@reddit

Switching to A1111 or ComfyUI is next. DreamFactoryAPI auto-generates REST endpoints around their web sockets, handles auth, and lets me map the existing flux routes nearly 1:1. I prototype flows in n8n for queueing jobs, while APIWrapper.ai helps batch the image payloads. So A1111/ComfyUI support is coming.
View on Reddit #60582339

ortegaalfredo@reddit

How many parameters have you "wife"?
View on Reddit #60559976

Dyonizius@reddit

I'll bet as much as he has arguments
View on Reddit #60573259

Cruxius@reddit

Any chance of Lora support?
View on Reddit #60571924

Physical_Ad9040@reddit

what are the gpu requirements to use this tool?
View on Reddit #60565509

hukkaja@reddit

# Requirements * **Python 3.11+** * `pip` or `uv` (Python package installer; `uv` is recommended for speed) * **NVIDIA GPU** (recommended for speed; CPU fallback supported) * **\~21GB VRAM** is preferred for the best performance. * Modern web browser (Chrome, Firefox, Edge, etc.) * Some images to Ghiblify! *Info pulled from github page.*
View on Reddit #60565785

Physical_Ad9040@reddit

thanks
View on Reddit #60571192

Whole-Assignment6240@reddit

cool project
View on Reddit #60569473

redonculous@reddit

Love it! Is there a dark mode?
View on Reddit #60569270

IrisColt@reddit

Thanks!!!
View on Reddit #60562887

Felladrin@reddit

This looks amazing! Thank you for sharing and making it open source!
View on Reddit #60555422

XMasterrrr@reddit (OP)

Thank you 😁
View on Reddit #60556035