Warning can only create PNG files.
gateway opened this issue · comments
Gateway commented
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')
Ryan Hamilton commented
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.
Ryan Hamilton commented
1.2.1 is live. Closing