--generate-interpolation broken in v1.0.2
See original GitHub issueTried running a --generate-interpolation in the latest version, got the below error. Generating a single image with --generate works fine.
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/bin/stylegan2_pytorch", line 8, in <module>
sys.exit(main())
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stylegan2_pytorch/cli.py", line 152, in main
fire.Fire(train_from_folder)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/fire/core.py", line 138, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/fire/core.py", line 468, in _Fire
target=component.__name__)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/fire/core.py", line 672, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stylegan2_pytorch/cli.py", line 136, in train_from_folder
model.generate_interpolation(samples_name, num_image_tiles, save_frames = save_frames)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 15, in decorate_context
return func(*args, **kwargs)
File "/home/ubuntu/anaconda3/envs/pytorch_latest_p36/lib/python3.6/site-packages/stylegan2_pytorch/stylegan2_pytorch.py", line 992, in generate_interpolation
latents_low = noise(num_rows ** 2, latent_dim)
TypeError: noise() missing 1 required positional argument: 'device'
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (8 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Approximately 1,000 hand-edited, centered, and scaled 256x256 licensed stock photography images. Trying to replicate the “this ____ does not exist” type of thing.
I ran a “pip install stylegan2_pytorch” just before opening the issue, but unfortunately I have terminated the EC2 instance I was using. I’ll spin up another one and try again and see if the issue repros.