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
TypeError: expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'numpy.int64'>, <class 'numpy.int64'>]
#37
Open
liuhw01 opened this issue
Feb 21, 2024
· 2 comments
When I load the network from pretrained_models/next3d_ffhq_512.pkl,
Running img = G.synthesis() in all the code results in an error:
_ = G.synthesis(ws[:1], c[:1], verts[:1]) # warm up
File "", line 154, in synthesis
File "/root/miniconda3/envs/next3d/lib/python3.9/site-packages/torch/nn/functional.py", line 3924, in interpolate
raise TypeError(
TypeError: expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'numpy.int64'>, <class 'numpy.int64'>]
What could be the reason for this?
The text was updated successfully, but these errors were encountered:
When I load the network from pretrained_models/next3d_ffhq_512.pkl,
Running img = G.synthesis() in all the code results in an error:
File "", line 154, in synthesis
File "/root/miniconda3/envs/next3d/lib/python3.9/site-packages/torch/nn/functional.py", line 3924, in interpolate
raise TypeError(
TypeError: expected size to be one of int or Tuple[int] or Tuple[int, int] or Tuple[int, int, int], but got size with types [<class 'numpy.int64'>, <class 'numpy.int64'>]
What could be the reason for this?
The text was updated successfully, but these errors were encountered: