-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error when trying to train #5
Comments
please add lib to the PYTHONPATH |
thanks |
@jpsml I meet the same problem.I try to add lib to the PYTHONPATH, such as add"import sys |
run the following in the terminal before running the training: export PYTHONPATH="${PYTHONPATH}:/home/jpsml/mvp/lib" in your case you need to replace "home/jpsml/mvp" by the local path where mvp is located |
I run the line in the terminal. I run 'print(sys.path)' lib path in the pythonpath. But There is still the error: |
sorry, I believe the correct command is the following: export PYTHONPATH="${PYTHONPATH}:/home/jpsml/mvp" |
I am getting the following error when I try to run training, how should I proceed in order to solve it?
(mvp) jpsml@jpsml-ubuntu:~/mvp$ python -m torch.distributed.launch --nproc_per_node=8 --use_env run/train_3d.py --cfg configs/campus/mvp_campus.yaml
Setting OMP_NUM_THREADS environment variable for each process to be 1 in default, to avoid your system being overloaded, please further tune the variable for optimal performance in your application as needed.
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "run/train_3d.py", line 34, in
import dataset
File "/home/jpsml/mvp/run/../lib/dataset/init.py", line 20, in
from dataset.h36m import H36M as h36m
File "/home/jpsml/mvp/run/../lib/dataset/h36m.py", line 30, in
from lib.utils.cameras_cpu import camera_to_world_frame, project_pose
ModuleNotFoundError: No module named 'lib'
Traceback (most recent call last):
File "/home/jpsml/anaconda3/envs/mvp/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/home/jpsml/anaconda3/envs/mvp/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/jpsml/anaconda3/envs/mvp/lib/python3.6/site-packages/torch/distributed/launch.py", line 261, in
main()
File "/home/jpsml/anaconda3/envs/mvp/lib/python3.6/site-packages/torch/distributed/launch.py", line 257, in main
cmd=cmd)
subprocess.CalledProcessError: Command '['/home/jpsml/anaconda3/envs/mvp/bin/python', '-u', 'run/train_3d.py', '--cfg', 'configs/campus/mvp_campus.yaml']' returned non-zero exit status 1.
The text was updated successfully, but these errors were encountered: