Closed quicktwit closed 2 years ago
I downgrade the torch version and no more stuck. And then it gives me this error:
Traceback (most recent call last):
File "inference.py", line 388, in <module>
main()
File "inference.py", line 383, in main
config=RunProcess(config)
File "inference.py", line 325, in RunProcess
p = subprocess.Popen(cmdArr, stdout=subprocess.PIPE)
File "/opt/conda/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/opt/conda/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ReconstructMesh': 'ReconstructMesh'
I am guessing this error is may be because build_openmvs did not build it correctly. How do I fix this build issue?
I fixed the issue by changing zlib version.
I met the same problem of No such file or directory: 'ReconstructMesh': 'ReconstructMesh'
.
vvtool: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "tools/lib/network_predict.py", line 9, in <module>
from model import *
ModuleNotFoundError: No module named 'model'
vvtool: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "inference.py", line 381, in <module>
main()
File "inference.py", line 376, in main
config=RunProcess(config)
File "inference.py", line 318, in RunProcess
p = subprocess.Popen(cmdArr, stdout=subprocess.PIPE)
File "/opt/conda/lib/python3.7/subprocess.py", line 800, in __init__
restore_signals, start_new_session)
File "/opt/conda/lib/python3.7/subprocess.py", line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ReconstructMesh': 'ReconstructMesh'
Howevert, when I check my zlib version with whereis zlib
and vi /usr/include/zlib.h
commandline, I find zlib-1.2.11. I think it is the expected version.
So, do you have any suggestion about what I should do to deal with such issue?
Thank you! @quicktwit
@zhu-yuefeng I had to change the zlib version to 1.2.12 because the download link for zlib-1.2.11 doesn't exist anymore. They have officially replaced it with the newer version. So if you change the version to 1.2.12 it should work
@zhu-yuefeng I had to change the zlib version to 1.2.12 because the download link for zlib-1.2.11 doesn't exist anymore. They have officially replaced it with the newer version. So if you change the version to 1.2.12 it should work
Thank you for quick reply! Do you mean I can simply assign zlib=1.2.12
in conan recipe, or there are other changes to make?
Hi @zhu-yuefeng This version change should be available only in this branch: https://github.com/GDAOSU/vis2mesh/blob/master/tools/build_openmvs.sh#L7
And then I think you can change the zlib version (for example: http://zlib.net/zlib-1.2.12.tar.gz) here: https://github.com/GDAOSU/openMVS_mvasupport/blob/09fdd45e23c4b4fd3a0a4258f8294aae6e9fe8d9/build/Modules/import_zlib.cmake#L4
Let me know if that works. Thank you
Somehow I get vis2mesh working with zlib 1.2.11. Here is a brief summary:
model
. The cause was that I changed project structured but forgot to edit PATH environment variable. After editing PATH everything went well.zlib-1.2.11.tar.gz
file somehow, move it to /openMVS_build/libs/MVArchive/zlib/src/', and comment the command of downloading it from remote (these lines are right after
...perform download...in
.../openMVS_build/libs/MVArchive/CMakeFiles/zlib_ext.dir/build.cmake`), and just go on. This is probably a wild and UNRECOMMENDED way but works for me.
Hi I installed the repo on my computer (Ubuntu 20)
Method 1: I followed all the steps. When it tried to build_openmvs, then I am getting cmake error:
I kept continue and then I launched the docker container. When I execute default example:
python inference.py example/example1.ply
After getting all views, and pressing Q, nothing happening.
I think i am stucking here: https://github.com/GDAOSU/vis2mesh/blob/master/inference.py#L306
How do I get the final mesh reconstruction? What am I missing? I tried all ways but couldn't succeed.