Doggettx / stable-diffusion

Other
205 stars 16 forks source link

img2img.py issue #17

Open PlayBoxTech opened 2 years ago

PlayBoxTech commented 2 years ago

With current pushed code I get the following error:

Baaleos commented 2 years ago

Getting same issue I can get rid of the error by removing references to model half - but this results in me only being able to go as high as 1024x1024 on img2img mode. Attempting to go to 2048x2048 - results in out of memory , but the model half issue prevents me from getting around that. Would love a solution if you get a chance.

JacobMarley commented 2 years ago

@baaleos How did you remove references to 'model half'?

Baaleos commented 2 years ago

Commented out line 200 and 204 of img2img.py but I think in the end I just kept it in - not sure what resolved it. In the end I just have to make sure that the input image is of a standard size I typically work in 512x512 by default, but I am able to get it working at 768x768 as well as 512x1024 and 768x1024 etc

Celelibi commented 2 years ago

FWIW, I got the mountain example to run by modifying this line: https://github.com/Doggettx/stable-diffusion/blob/ab0bff6bc08c0ac55e08c596c999e5e5e0a7c111/scripts/img2img.py#L54 to make it load the input image as float16 instead of float32.