How to use flux.1-dev models in python? #1563
Unanswered
asatulsinha4
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi All
I am trying to use flux dev models locally, but unable to. There are 2 files, one that is only unet and second with is all in one with text encoders and vae included.
So far, I've been running flux dev and schnell locally using huggingface diffusers lib, and recently started exploring LoRAs and other flux models available on the internet.
This is how I've been using so far:
I have resources constraint. I run it on my laptop, which has core i9 11900H CPU, 32GB RAM, and NVIDIA RTX 3060 Laptop GPU with 6GB of VRAM. Also one of the reasons why I am unwilling to explore popular options like ComfyUI, Automatic 1111 etc
Although this is slow, but it generates images within 4 minutes, so I'm fine with it.
I recently came across an flux model, which I'm really dying to try, but for the life of me I am unable to figure out how to make it work.
I've tried searching it online, using chatgpt...no help.
Also, I am a complete novice in python. So please feel free to take me as an idiot.
I come from Java and Perl background.
I've tried this:
pipeline = StableDiffusionPipeline.from_single_file(aio_safetensors_path, use_safetensors=True)
and this:
and this:
In every case, it errors out like this:
I only have safetensors files and no config json files, and it should be able to run on automatic 1111 like this
can someone help please? I want to make it work using python, preferably by using huggingface diffusers and safetensors libraries
Thanks!!
Beta Was this translation helpful? Give feedback.
All reactions