question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

--generate-interpolation broken in v1.0.2

See original GitHub issue

Tried 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:closed
  • Created 3 years ago
  • Comments:12 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
zax9commented, Sep 28, 2020

Approximately 1,000 hand-edited, centered, and scaled 256x256 licensed stock photography images. Trying to replicate the “this ____ does not exist” type of thing.

1reaction
zax9commented, Sep 27, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found