I am trying to use a tool which have pytorch3d as dependency. As soon as I run the inference, following error occurs as stated in title.
Instructions To Reproduce the Issue:
Installed the following tool https://github.com/rlgnswk/NeRFFaceSpeech_Code
Installed pytorch3d using wheel
pip install "C:\WHEELS\pytorch3d-0.7.6+pt2.0.0cu117-cp310-cp310-win_amd64.whl"
No issues during installation.
Please include the following (depending on what the issue is):
(venv) C:\ai\NeRFFaceSpeech_Code>python StyleNeRF/main_NeRFFaceSpeech_audio_driven_from_z.py --outdir=out_test --trunc=0.7 --network=pretrained_networks/ffhq_1024.pkl --test_data="test_data/test_audio/AdamSchiff_0.wav" --seeds=0
Loading networks from "pretrained_networks/ffhq_1024.pkl"...
Setting up PyTorch plugin "bias_act_plugin"... Done.
C:\ai\NeRFFaceSpeech_Code\venv\lib\site-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:3191.)
return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined]
Setting up PyTorch plugin "upfirdn2d_plugin"... Done.
model [FaceReconModel] was created
loading the model from pretrained_networks/Deep3DFaceRecon_pytorch/face_recon\epoch_20.pth
create cuda ctx on device cuda:0
########################### audio2exp_model Loading Done #################################
Traceback (most recent call last):
File "C:\ai\NeRFFaceSpeech_Code\StyleNeRF\main_NeRFFaceSpeech_audio_driven_from_z.py", line 361, in <module>
generate_images() # pylint: disable=no-value-for-parameter
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\click\decorators.py", line 33, in new_func
return f(get_current_context(), *args, **kwargs)
File "C:\ai\NeRFFaceSpeech_Code\StyleNeRF\main_NeRFFaceSpeech_audio_driven_from_z.py", line 207, in generate_images
fitted_coeffs = fit_3dmm(outdir)
File "C:\ai\NeRFFaceSpeech_Code\StyleNeRF\audio2NeRF_utils.py", line 127, in fit_3dmm
from fit_single_img_custom import fit
File "C:\ai\NeRFFaceSpeech_Code\3DMM-Fitting-Pytorch\fit_single_img_custom.py", line 2, in <module>
from core.options import ImageFittingOptions
File "C:\ai\NeRFFaceSpeech_Code\3DMM-Fitting-Pytorch\core\__init__.py", line 1, in <module>
from core.BFM09Model import BFM09ReconModel
File "C:\ai\NeRFFaceSpeech_Code\3DMM-Fitting-Pytorch\core\BFM09Model.py", line 5, in <module>
from core.BaseModel import BaseReconModel
File "C:\ai\NeRFFaceSpeech_Code\3DMM-Fitting-Pytorch\core\BaseModel.py", line 5, in <module>
from pytorch3d.renderer import (
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\pytorch3d\renderer\__init__.py", line 7, in <module>
from .blending import (
File "C:\ai\NeRFFaceSpeech_Code\venv\lib\site-packages\pytorch3d\renderer\blending.py", line 10, in <module>
from pytorch3d import _C
ImportError: DLL load failed while importing _C: The specified procedure could not be found.
Please also simplify the steps as much as possible so they do not require additional resources to run, such as a private dataset.
🐛 Bugs / Unexpected behaviors
I am trying to use a tool which have pytorch3d as dependency. As soon as I run the inference, following error occurs as stated in title.
Instructions To Reproduce the Issue:
Installed the following tool https://github.com/rlgnswk/NeRFFaceSpeech_Code Installed pytorch3d using wheel pip install "C:\WHEELS\pytorch3d-0.7.6+pt2.0.0cu117-cp310-cp310-win_amd64.whl"
No issues during installation.
Please include the following (depending on what the issue is):
Any changes you made (
git diff
) or code you wroteThe exact command(s) you ran:
What you observed (including the full logs):
Please also simplify the steps as much as possible so they do not require additional resources to run, such as a private dataset.
(venv) C:\ai\NeRFFaceSpeech_Code>pip list