uber-research / UPSNet

UPSNet: A Unified Panoptic Segmentation Network
Other
648 stars 120 forks source link

Extension horovod.torch has not been built. #30

Open general-wang opened 5 years ago

general-wang commented 5 years ago

Hello, After I run : python upsnet/upsnet_end2end_train.py --cfg upsnet/experiments/upsnet_resnet50_coco.yaml

I encountered that: ImportError: Extension horovod.torch has not been built. If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

How should I do? Thanks for answering.

Traceback (most recent call last): File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/torch/init.py", line 24, in file, 'mpi_lib_v2') File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/common/init.py", line 48, in check_extension 'Horovod with %s=1 to debug the build error.' % (ext_name, ext_env_var)) ImportError: Extension horovod.torch has not been built. If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "upsnet/upsnet_end2end_train.py", line 44, in import horovod.torch as hvd File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/torch/init.py", line 27, in file, 'mpi_lib', '_mpi_lib') File "/home/anaconda3/envs/pytorch1.0_python3.5/lib/python3.5/site-packages/horovod/common/init.py", line 48, in check_extension 'Horovod with %s=1 to debug the build error.' % (ext_name, ext_env_var))

YuwenXiong commented 5 years ago

If you don't know how to run horovod properly, please use the 4gpu config file. And you can ask horovod-related issue at here: https://github.com/horovod/horovod

general-wang commented 5 years ago

OK, Thank you, YuwenXiong.

lushishuai commented 4 years ago

If you don't know how to run horovod properly, please use the 4gpu config file. And you can ask horovod-related issue at here: https://github.com/horovod/horovod

hello,have you help him solve this problem?

chauncygu commented 3 years ago

my algorithm also has the problem:

ImportError: Extension horovod.torch has not been built:If this is not expected, reinstall Horovod with HOROVOD_WITH_PYTORCH=1 to debug the build error.

could any suggestions for solving this problem?