iPERDance / iPERCore

Liquid Warping GAN with Attention: A Unified Framework for Human Image Synthesis
https://iperdance.github.io/work/impersonator-plus-plus.html
Apache License 2.0
2.42k stars 316 forks source link

DLL load failed while importing load_textures: 找不到指定的模块 #53

Open Datadelete10426 opened 3 years ago

Datadelete10426 commented 3 years ago

Traceback (most recent call last): File "demo/motion_imitate.py", line 10, in from iPERCore.services.run_imitator import run_imitator File "e:\ipercore\iPERCore\services\run_imitator.py", line 4, in from iPERCore.models import ModelsFactory File "e:\ipercore\iPERCore\models__init.py", line 2, in from .flowcomposition import FlowComposition File "e:\ipercore\iPERCore\models\flowcomposition.py", line 7, in from iPERCore.tools.human_digitalizer.renders import SMPLRenderer File "e:\ipercore\iPERCore\tools\human_digitalizer\renders__init__.py", line 1, in from .nmr import SMPLRenderer File "e:\ipercore\iPERCore\tools\human_digitalizer\renders\nmr.py", line 6, in import neural_renderer as nr File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer\init__.py", line 3, in from .load_obj import load_obj File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer\load_obj.py", line 9, in import neural_renderer.cuda.load_textures as load_textures_cuda ImportError: DLL load failed while importing load_textures: 找不到指定的模块。 环境:Win10+py3.8+CUDA10.2

piaozhx commented 3 years ago

Have you solved your problem?

Datadelete10426 commented 3 years ago

Have you solved your problem?

no……what should I do?

piaozhx commented 3 years ago

refer https://github.com/iPERDance/iPERCore/issues/30#issuecomment-754573312

piaozhx commented 3 years ago

@Datadelete10426 I guess this problem was caused by the wrong version of MSVC (i.e. Visual Studio), I recommend you to install the latest Visual Studio 2019 and select the related module of C++.

Datadelete10426 commented 3 years ago

@Datadelete10426 I guess this problem was caused by the wrong version of MSVC (i.e. Visual Studio), I recommend you to install the latest Visual Studio 2019 and select the related module of C++.

image Already installed

piaozhx commented 3 years ago

Any error occurred during the compilation?

Datadelete10426 commented 3 years ago

Any error occurred during the compilation?

Did not happen

piaozhx commented 3 years ago

I notice that you do not use any virtual environment (multiple CUDA version and old pytorch may cause some compatibility issues). you can build a new virtuall environment (conda or venv) and try installing the latest version of iPERCore from stretch.

piaozhx commented 3 years ago

@Datadelete10426 Each time you install a new version of pytorch, you must reinstall the neural_renderer (because it is compiled by pytorch), maybe that's the problem.

anguoKuang commented 3 years ago

Traceback (most recent call last): File "demo/motion_imitate.py", line 10, in from iPERCore.services.run_imitator import run_imitator File "e:\ipercore\iPERCore\services\run_imitator.py", line 4, in from iPERCore.models import ModelsFactory File "e:\ipercore\iPERCore\modelsinit.py", line 2, in from .flowcomposition import FlowComposition File "e:\ipercore\iPERCore\models\flowcomposition.py", line 7, in from iPERCore.tools.human_digitalizer.renders import SMPLRenderer File "e:\ipercore\iPERCore\tools\human_digitalizer\rendersinit.py", line 1, in from .nmr import SMPLRenderer File "e:\ipercore\iPERCore\tools\human_digitalizer\renders\nmr.py", line 6, in import neural_renderer as nr File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_rendererinit.py", line 3, in from .load_obj import load_obj File "C:\Users\Not found\AppData\Local\Programs\Python\Python38\lib\site-packages\neural_renderer\load_obj.py", line 9, in import neural_renderer.cuda.load_textures as load_textures_cuda ImportError: DLL load failed while importing load_textures: 找不到指定的模块。 环境:Win10+py3.8+CUDA10.2

检查一下是不是你的torch安装成了cpu的版本?