rkhamilton / vqgan-clip-generator

Implements VQGAN+CLIP for image and video generation, and style transfers, based on text and image prompts. Emphasis on ease-of-use, documentation, and smooth video creation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Warning can only create PNG files.

gateway opened this issue · comments

I noticed with the 1.2 build when I run my script it throws a warning out.

C:\Users\stiet\anaconda3\envs\vqgan1\lib\site-packages\vqgan_clip\generate.py:579: UserWarning: vqgan_clip_generator can only create and save .PNG files.
  warnings.warn('vqgan_clip_generator can only create and save .PNG files.')

block of code uses in this script.

vqgan_clip.generate.single_image(eng_config = config,
        text_prompts = text_prompts,
        iterations = 10,
        save_every = 2,
        output_filename = 'man2')

Thanks, I've found the issue. I added a check to the code so that if someone sets output_filename to have a jpg file extension it will throw a warning and change the extension to .png. The bug is that it treated "no file extension" as "not .png". This is fixed in the next version.

1.2.1 is live. Closing