-
Notifications
You must be signed in to change notification settings - Fork 240
Description
Last week I tried to export the npz file to fbx file following the instruction in Export.md https://github.com/Arthur151/ROMP/blob/master/simple_romp/doc/export.md, with the npz file being generated by simple ROMP.
I used this command in Windows terminal (the file path edited):
python tools/convert2fbx.py --input=/home/yusun/BEV_results/video_results.npz --output=/home/yusun/BEV_results/dance.fbx --gender=female
After that I came across an error just like issue 441https://github.com/Arthur151/ROMP/issues/441
ERROR: Invalid requirement: 'tools/bpy-2.82.1'
Traceback (most recent call last):
File "simple_romp/tools/convert2fbx.py", line 36, in
import bpy
ImportError: DLL load failed: 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行 sxstrace.exe 工具。
I attempted to solve the error using many apporachs, but all of them not worked. Finally I found an approach that can run the convert2fbx.py without error and generate fbx file successfully. Here is what I did:
- Uninstall the bpy module that installed following the link in Export.md https://github.com/TylerGubala/blenderpy/releases
- Install a new bpy module in a new bpy homepage that mentioned in issue 270 https://github.com/Arthur151/ROMP/issues/270, which is https://pypi.org/project/bpy/. I chose version 2.82.1 https://pypi.org/project/bpy/2.82.1/ and installed using command > pip install bpy==2.82.1
- Then I reuse the command > python tools/convert2fbx.py --input=/home/yusun/BEV_results/video_results.npz --output=/home/yusun/BEV_results/dance.fbx --gender=female, and it would occur a new error: ModuleNotFoundError: No module named 'bpy_types'. This issue is mentioned in https://github.com/TylerGubala/blenderpy/issues/13, you can find the solution in this answer.
- Ensure you have change the two file paths with your path (male_model_path = , emale_model_path = ) in convert2fbx.py.
Now everything is ready, just reuse the command > python tools/convert2fbx.py --input=/home/yusun/BEV_results/video_results.npz --output=/home/yusun/BEV_results/dance.fbx --gender=female, and wait for your fbx model!!!!