Question about using image samples and VRAM
See original GitHub issueI’ve been messing around with the program all day now and it is very interesting. I have thousands of wallpapers I use I keep in a folder and I thought it would be cool to use one of them as an image sample. I was getting the CUDA out of memory runtime error when I tried to use the command
imagine "a psychedelic experience." --start-image-path ./fasfa.jpg
I’m sure I’m getting this error because of the 1080p resolution of the reference image and my 8GB of VRAM not being able to render/train the image or whatever it’s called. Is there a way to make the AI interpret the image at a lower resolution may be an alternative way to slow the training/rendering down to cope with the resolution of the image? I understand this is like stuff a 9-year-old could figure out but I just want to be 100% sure of the capabilities of this program. If there is no such option is that a feature that could be implemented into the software, To either interpret the resolution of any image as a singular image or able to slow the render speed or change the rate of the training (or change certain aspects of whatever the VRAM is used to do) to make it able to cope with the high res image? Or do I just have to crop it or manually lower the resolution? I tried to tag this issue as a question but I couldn’t find the option to do so.
Issue Analytics
- State:
- Created 3 years ago
- Comments:9
Top GitHub Comments
Yeah it’s no worries! Welcome to Python and the machine learning community!
Assuming you are a.) On linux, b.) Using an Nvidia GPU, c.) Have cuda installed properly:
Here’s how I do it.
This part’s kinda annoying, but you should try to use virtual environments with python. using your global python can cause bugs that are really tough to figure out.
Double check that you’re in a virtualenv:
Important: Check your CUDA version with
nvidia-smi
. Change the numbers in e.g.+cu111
to your cuda version. At the time of this post +cu112 versions aren’t availabe, so just use+cu111
if you have cuda 11.2.finally, install deep daze.
Okay, now you’re ready to write and run some Python! Here’s a starting file.
To run it, just save it to “run.py” and then run:
python run.py
How could I edit this script so that it doesn’t create a new image each time it updates it and only outputs the start and final image?