Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style Mixing script gives an error #24

Open
abhisheklalwani opened this issue Nov 10, 2021 · 0 comments
Open

Style Mixing script gives an error #24

abhisheklalwani opened this issue Nov 10, 2021 · 0 comments

Comments

@abhisheklalwani
Copy link

Describe the bug
Title
Exact Error -
File "style_mixing.py", line 29, in num_range m = range_re.match(s) TypeError: expected string or bytes-like object

To Reproduce
Steps to reproduce the behavior:

  1. Run the following command -
    python style_mixing.py --outdir=out --rows=85 --cols=55 --network=https://nvlabs-fi-cdn.nvidia.com/stylegan2-ada-pytorch/pretrained/metfaces.pkl

Expected behavior
Image grid should be generated and saved.

Additional context
Fixed it by adding the following lines in the code.
m = range_re.match(str(s))
if type(s) == list and type(s[0]) == int: return s
Not sure if I am the only one who is facing this issue or if there is a mistake on my part.
Posting it here in case anyone else runs into this issue.

Thanks for the great work guys! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant