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

RuntimeError: Boolean value of Tensor with more than one value is ambiguous #71

Open
tombenj opened this issue Nov 15, 2023 · 2 comments

Comments

@tombenj
Copy link

tombenj commented Nov 15, 2023

Trying to run the replay.py animation but I'm getting the below error:

loading optim config from:  ./optimConfig.ini
Loading Basel Face Model 2017 from ./baselMorphableModel/morphableModel-2017.pickle...
loading mesh normals...
loading uv parametrization...
loading landmarks association file...
creating sampler...
/usr/local/lib/python3.10/dist-packages/torch/functional.py:504: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3190.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]
animating reconstruction, this may take some time depending on the number of raytracing samples and ur gpu. please wait...
Traceback (most recent call last):
  File "/content/NextFace/new_replay.py", line 62, in <module>
    while currentAngle > minBound:
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
@tombenj
Copy link
Author

tombenj commented Nov 16, 2023

Just to clarify, this happens when more than one image is used for a person. So the replay.py script doesn't work if you have constructed a face/person using more than one image using --sharedIdentity.

@hipro
Copy link

hipro commented Nov 18, 2023

Encountered this problem as well.

loading optim config from:  ./optimConfig.ini
Loading Basel Face Model 2017 from ./baselMorphableModel/morphableModel-2017.pickle...
loading mesh normals...
loading uv parametrization...
loading landmarks association file...
creating sampler...
animating reconstruction, this may take some time depending on the number of raytracing samples and ur gpu. please wait...
Traceback (most recent call last):
  File "replay.py", line 63, in <module>
    while currentAngle > minBound:
RuntimeError: bool value of Tensor with more than one value is ambiguous

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

2 participants