You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loading networks from "https://s3.eu-central-1.amazonaws.com/avg-projects/stylegan_xl/models/imagenet512.pkl"...
Downloading https://s3.eu-central-1.amazonaws.com/avg-projects/stylegan_xl/models/imagenet512.pkl ... done
Traceback (most recent call last):
File "run_inversion.py", line 336, in <module>
run_projection() # pylint: disable=no-value-for-parameter
File "/home/vibhu/miniconda3/envs/general/lib/python3.7/site-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/home/vibhu/miniconda3/envs/general/lib/python3.7/site-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/home/vibhu/miniconda3/envs/general/lib/python3.7/site-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/vibhu/miniconda3/envs/general/lib/python3.7/site-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "run_inversion.py", line 265, in run_projection
G = legacy.load_network_pkl(fp)['G_ema'].to(device) # type: ignore
File "/home/vibhu/Workspace/stylegan-xl/legacy.py", line 25, in load_network_pkl
data = _LegacyUnpickler(f).load()
File "/home/vibhu/Workspace/stylegan-xl/legacy.py", line 75, in find_class
return super().find_class(module, name)
ModuleNotFoundError: No module named 'timm.models.layers.conv2d_same'
I'd really appreciate any help, thank you.
The text was updated successfully, but these errors were encountered:
This is likely an issue about timm version, when you run the file in another environment. You can try pip install timm==0.4.12.
Also, to merge all the requirements specified in a yaml file into an existing conda environment, you can deactivate from the environment and use this conda env update --name myenv --file environment.yml --prune
I ran the following example code provided in the readme:
and got this error:
I'd really appreciate any help, thank you.
The text was updated successfully, but these errors were encountered: