by bfirsh on 10/27/23, 4:37 PM with 71 comments
by herpdyderp on 10/27/23, 5:27 PM
Edit: it seems the "per second" requires the `--continuous` flag to bypass the initial startup time. With that, I'm now seeing the ~1 second per image time (if initial startup time is ignored).
by m3kw9 on 10/27/23, 7:17 PM
It redownloads 4 gigs worth of stuff every execution. Can't you have the script save, and check if its there, then download it or am I doing something wrong?
by simple10 on 10/27/23, 6:55 PM
I know what I'll be doing this weekend... generating artwork for my 9 yo kid's video game in Game Maker Studio!
Does anyone know any quick hacks to the python code to sequentially prompt the user for input without purging the model from memory?
by naet on 10/27/23, 9:07 PM
by oldstrangers on 10/27/23, 5:13 PM
by hackthemack on 10/27/23, 7:27 PM
Follow the instructions. Before actually running the command to generate an image.
Open up main.py Change line 17 to model.to(torch_device="cpu", torch_dtype=torch.float32).to('cpu:0')
Basically change the backend from mps to cpu
by zorgmonkey on 10/28/23, 12:26 AM
* after `pip install -r requirements.txt` do `pip3 install torch torchvision torchaudio xformers --index-url https://download.pytorch.org/whl/cu121`
* on line 17 of main.py change torch.float32 to torch.float16 and change mps:0 to cuda:0
* add a new line after 17 `model.enable_xformers_memory_efficient_attention()`
The xFormers stuff is optional, but it should make it a bit faster. For me this got it generating images in less than second [00:00<00:00, 9.43it/s] and used 4.6GB of VRAM.
by agloe_dreams on 10/27/23, 5:26 PM
by tobr on 10/27/23, 6:46 PM
by LauraMedia on 10/27/23, 8:25 PM
Generation takes 20-40 seconds, when using "--continuous" it takes 20-40 seconds once and then keeps generating every 3-5 seconds.
by simple10 on 10/27/23, 7:24 PM
I'd like do to some comparison testing. The model in the post is fast but results are hit or miss for quality.
by m3kw9 on 10/27/23, 7:52 PM
This on an M2 Max 32gb
by firechickenbird on 10/27/23, 6:59 PM
by latchkey on 10/28/23, 2:19 AM
by ForkMeOnTinder on 10/27/23, 6:31 PM
by grandpa_yeti on 10/27/23, 5:13 PM
by AIorNot on 10/27/23, 5:01 PM