You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the cmd output when I try to use generate.py. I followed the youtube tutorial and did every step. What could be the possible issue ?
(vqgan) C:\VQGAN-CLIP>python generate.py -p "abstract bananna"
Working with z of shape (1, 256, 16, 16) = 65536 dimensions.
Downloading vgg_lpips model from https://heibox.uni-heidelberg.de/f/607503859c864bc1b30b/?dl=1 to taming/modules/autoencoder/lpips\vgg.pth
8.19kB [00:00, 603kB/s]
loaded pretrained LPIPS loss from taming/modules/autoencoder/lpips\vgg.pth
VQLPIPSWithDiscriminator running with hinge loss.
Restored from checkpoints/vqgan_imagenet_f16_16384.ckpt
Traceback (most recent call last):
File "C:\VQGAN-CLIP\generate.py", line 548, in
perceptor = clip.load(args.clip_model, jit=jit)[0].eval().requires_grad_(False).to(device)
File "C:\VQGAN-CLIP\CLIP\clip\clip.py", line 134, in load
model = build_model(state_dict or model.state_dict()).to(device)
File "C:\VQGAN-CLIP\CLIP\clip\model.py", line 396, in build_model
vit = "visual.proj" in state_dict
File "C:\Anaconda\envs\vqgan\lib\site-packages\torch\jit_script.py", line 733, in contains
return self.forward_magic_method("contains", key)
File "C:\Anaconda\envs\vqgan\lib\site-packages\torch\jit_script.py", line 720, in forward_magic_method
raise NotImplementedError()
NotImplementedError
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This is the cmd output when I try to use generate.py. I followed the youtube tutorial and did every step. What could be the possible issue ?
(vqgan) C:\VQGAN-CLIP>python generate.py -p "abstract bananna"
Working with z of shape (1, 256, 16, 16) = 65536 dimensions.
Downloading vgg_lpips model from https://heibox.uni-heidelberg.de/f/607503859c864bc1b30b/?dl=1 to taming/modules/autoencoder/lpips\vgg.pth
8.19kB [00:00, 603kB/s]
loaded pretrained LPIPS loss from taming/modules/autoencoder/lpips\vgg.pth
VQLPIPSWithDiscriminator running with hinge loss.
Restored from checkpoints/vqgan_imagenet_f16_16384.ckpt
Traceback (most recent call last):
File "C:\VQGAN-CLIP\generate.py", line 548, in
perceptor = clip.load(args.clip_model, jit=jit)[0].eval().requires_grad_(False).to(device)
File "C:\VQGAN-CLIP\CLIP\clip\clip.py", line 134, in load
model = build_model(state_dict or model.state_dict()).to(device)
File "C:\VQGAN-CLIP\CLIP\clip\model.py", line 396, in build_model
vit = "visual.proj" in state_dict
File "C:\Anaconda\envs\vqgan\lib\site-packages\torch\jit_script.py", line 733, in contains
return self.forward_magic_method("contains", key)
File "C:\Anaconda\envs\vqgan\lib\site-packages\torch\jit_script.py", line 720, in forward_magic_method
raise NotImplementedError()
NotImplementedError
Beta Was this translation helpful? Give feedback.
All reactions