DragGAN icon indicating copy to clipboard operation
DragGAN copied to clipboard

DragGAN-main\viz\renderer.py", line 160, in get_network raise NameError('Cannot infer model type from pkl name!') NameError: Cannot infer model type from pkl name!

Open babyta opened this issue 2 years ago • 1 comments

DragGAN-main\viz\renderer.py", line 160, in get_network raise NameError('Cannot infer model type from pkl name!') NameError: Cannot infer model type from pkl name!

babyta avatar Jun 26 '23 07:06 babyta

In viz/renderer.py, it shows that it's expecting the model name to be in the file. That's why in the scripts/download_model.sh script, it first downloads the models and then renames them accordingly. For example, lions_512_pytorch.pkl is renamed to stylegan2_lions_512_pytorch.pkl. So basically, just add stylegan2 if it's a StyleGAN2 model.

PDillis avatar Jun 26 '23 11:06 PDillis