ImportError: libtorch.so: cannot open shared object file: No such file or directory
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- machine-learning
Research direction
Start with test_panoptic.py at line 17 and seamseg/utils/bbx/bbx.py, where the _backend import triggers the missing libtorch.so error. Check the Python 3.6 environment and PyTorch 1.1 installation used by the provided inference command. Done means the import succeeds and the inference command runs without this shared-library error.
Written by the indexing model from the issue text.
Description
Hi,
I am trying to load the pertained mode provided by you to carry out some evaluation on a set of images. I followed the instruction you provided to install the dependencies and packages. However, I am getting the error below which implies that a package is missing. I appreciate if you could advise me on this issue.
"""""""""""""""""""""""""""""""""""""""""""""""
Traceback (most recent call last):
File "test_panoptic.py", line 17, in
from seamseg.algos.detection import PredictionGenerator as BbxPredictionGenerator, DetectionLoss,
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/site-packages/seamseg-0.1.dev37+g3d10aea-py3.6-linux-x86_64.egg/seamseg/algos/detection.py", line 6, in
from seamseg.utils.bbx import ious, calculate_shift, bbx_overlap, mask_overlap
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/site-packages/seamseg-0.1.dev37+g3d10aea-py3.6-linux-x86_64.egg/seamseg/utils/bbx/init.py", line 1, in
from .bbx import *
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/site-packages/seamseg-0.1.dev37+g3d10aea-py3.6-linux-x86_64.egg/seamseg/utils/bbx/bbx.py", line 5, in
from . import _backend
ImportError: libtorch.so: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/site-packages/torch/distributed/launch.py", line 235, in
main()
File "PATH-TO-ANACONDA/envs/seamseg/lib/python3.6/site-packages/torch/distributed/launch.py", line 231, in main
cmd=process.args)
subprocess.CalledProcessError: Command '['PATH-TO-ANACONDA/envs/seamseg/bin/python', '-u', 'test_panoptic.py', '--local_rank=0', '--meta', '../checkpoints/seamseg_r50_vistas/metadata.bin', '--log_dir', '../log', '../checkpoints/seamseg_r50_vistas/config.ini', '../checkpoints/seamseg_r50_vistas/seamseg_r50_vistas.tar', '../../signals/data/frames/23', '../out']' returned non-zero exit status 1.
"""""""""""""""""""""""""""""""""""""""""""""""
My system config is :
CUDA10.1
GCC7
Python 3.6
torch1.1
I ran this command to do inference:
python -m torch.distributed.launch --nproc_per_node=1 test_panoptic.py --meta "../checkpoints/seamseg_r50_vistas/metadata.bin" --log_dir '../log' '../checkpoints/seamseg_r50_vistas/config.ini' '../checkpoints/seamseg_r50_vistas/seamseg_r50_vistas.tar' '../frames' '../out'
- Dominant language
- Python
- Stars
- 301
- Forks
- 53
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapillary/seamseg
-
ImportError during testing pre-trained model with test_panoptic.py, possibly a circular import?Open
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
-
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
Creating a ColabOpen
Difficulty 4/5 3-5 days Newbie friendliness 25/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
All issues in mapillary/seamseg
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-2 days Newbie friendliness 70/100
-
FingerprintSplitter raises ZeroDivisionError when int(frac_train * len(dataset)) floors to zeroOpen
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 7 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
lmstudio-ai/mlx-engine#376 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
pyiron/bagofholding#166 ·