lucidrains / big-sleep

A simple command line tool for text to image generation, using OpenAI's CLIP and a BigGAN. Technique was originally created by https://twitter.com/advadnoun
MIT License
2.57k stars 304 forks source link

Image saving error #97

Closed Wemmons831 closed 3 years ago

Wemmons831 commented 3 years ago

Hello I am using Big-Sleep straight out of command line on windows with no extra flags but for some reason when ever I get to image update 2 or 5 (most times 2) it errors out giving the error OSError: [Errno 22] Invalid argument: I couldn't find any fix that would work in this situation. Any and all help as to solving this error is greatly appreciated

wolfgangmeyers commented 3 years ago

I haven't seen that particular error, but I know that if you are viewing the image in windows explorer, each time the image updates windows will open the image briefly in order to update the thumbnail. Sometimes this can prevent the process from saving the image due to the file not being available for writing. If you set open_folder to False, it might help.

Wemmons831 commented 3 years ago

I haven't seen that particular error, but I know that if you are viewing the image in windows explorer, each time the image updates windows will open the image briefly in order to update the thumbnail. Sometimes this can prevent the process from saving the image due to the file not being available for writing. If you set open_folder to False, it might help.

Yep From my experience having file explorer open doesn't effect it but having the photos app open does