lucidrains / deep-daze

Simple command line tool for text to image generation using OpenAI's CLIP and Siren (Implicit neural representation network). Technique was originally created by https://twitter.com/advadnoun
MIT License
4.37k stars 326 forks source link

CUDA runs out of memory *only* when priming with a starting image #181

Open SilverChimerawing opened 2 years ago

SilverChimerawing commented 2 years ago

Hi all, I've been trying out Deep Daze without issue so far on an RTX 3060 Ti. However, I'm running into an odd "CUDA out of memory" error when trying out the starting image feature.

A command such as the following gives the dreaded error: imagine "furry lizard" --start-image-path "D:\Pictures\Varanus_salvator_-_01.png" --save-progress --save-every 100. The resolution of the input image seems to make no difference, as I found when trying it on several copies resized to half, 1/4, 1/8 and even 1/16 of the original resolution. However, an otherwise identical command, such as imagine "furry lizard" --save-progress --save-every 100, initiates image generation without problems.

Thanks for any help you can provide.

spip01 commented 2 years ago

I have this same problem. Tried the same things to fix it. Running on a 3070 with 8GB of ram.