About the loss of images due to memory error in "Hires. Fix" with txt2img... #11428
Replies: 1 comment 1 reply
-
Settings > Saving images/grids > Save a copy of image before applying highres fix. When in doubt, check the Settings page. Why isn't it on by default? To prevent duplicate image spam possibly, I recently deleted thousands of non high res gens that were just taking space. Now how to prevent out of memory errors, the Tiled Diffusion extension can help The ControlNet Tile process could also help. For these two there are better tutorials on Youtube that aren't hard to find and will do a much better job than I could here. You could also try adding --medvram to the launch.bat or use --xformers or other optimizations The latest Nvidia drivers also roll into regular system RAM if you go above your VRAM, so you won't get out of memory errors, instead generation speed will severely slow down but it will complete. It's kinda buggy though, and gens might not even finish or memory won't fully recover after a generation is done. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am producing 400x600 4 images in the txt2img field. At the same time, I activate the "Hires. Fix" feature and set it to 2x. I push Generate and the images are starting to be produced. But as soon as the full images are produced and passed to the upcscale process, it gives a memory error and the images it produces are lost (I checking outputs folder and see images not saved).
My question here is, it would be nice if we could at least protect the images produced when it could not upscale and give a memory error. Since I do not see this as a bug, I wanted to write it in discussions.
I don't know how things work in the background, but I think if the images were physically produced and saved one by one after generating with "Hires. Fix", it would have solved this problem.
Beta Was this translation helpful? Give feedback.
All reactions