stylegan2-pytorch icon indicating copy to clipboard operation
stylegan2-pytorch copied to clipboard

Error in projector.py with low steps

Open smithee77 opened this issue 3 years ago • 0 comments

Hi, first of all thanks for your work.

I'm having issues with projector.py when steps < 100. E.g. with !python projector.py --size 1024 --step 99 --ckpt /content/output/checkpoint/latest.pt $filepath

I get this error

Traceback (most recent call last): File "/content/stylegan_ada_ros/projector.py", line 226, in img_gen, _ = g_ema([latent_path[-1]], input_is_latent=True, noise=noises) IndexError: list index out of range

But when I use !python projector.py --size 1024 --step 100 --ckpt /content/output/checkpoint/latest.pt $filepath everything works fine

Any clue? thanks in advance

smithee77 avatar Nov 02 '21 18:11 smithee77