Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in running mtmct_reid.train #26

Open
erictan23 opened this issue Mar 19, 2024 · 0 comments
Open

Error in running mtmct_reid.train #26

erictan23 opened this issue Mar 19, 2024 · 0 comments

Comments

@erictan23
Copy link

Hello! I am interested in trying out this repository however I have encountered some problems in getting the training code to run.

Running this CLI: python -m mtmct_reid.train --data_dir data/raw/Market-1501-v15.09.15 --save_distribution st_distribution/st_distribution.pkl --gpus 1 --max_epochs 60

this is the error that I have received, which i think might be due to torchtext version issue? I am not very sure. Could you advise me on what I should do?
Traceback (most recent call last):
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/default/Desktop/eric/MTMCT-Person-Re-Identification/mtmct_reid/train.py", line 5, in
from pytorch_lightning import Trainer
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/init.py", line 30, in
from pytorch_lightning.callbacks import Callback # noqa: E402
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/callbacks/init.py", line 14, in
from pytorch_lightning.callbacks.base import Callback
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/callbacks/base.py", line 25, in
from pytorch_lightning.utilities.types import STEP_OUTPUT
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/utilities/init.py", line 18, in
from pytorch_lightning.utilities.apply_func import move_data_to_device # noqa: F401
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/utilities/apply_func.py", line 29, in
from pytorch_lightning.utilities.imports import _compare_version, _TORCHTEXT_LEGACY
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/utilities/imports.py", line 116, in
_TORCHTEXT_LEGACY: bool = _TORCHTEXT_AVAILABLE and _compare_version("torchtext", operator.lt, "0.11.0")
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/pytorch_lightning/utilities/imports.py", line 69, in _compare_version
pkg = importlib.import_module(package)
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/torchtext/init.py", line 40, in
_init_extension()
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/torchtext/init.py", line 36, in _init_extension
torch.ops.load_library(ext_specs.origin)
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/torch/_ops.py", line 933, in load_library
ctypes.CDLL(path)
File "/home/default/miniconda3/envs/multicam1/lib/python3.8/ctypes/init.py", line 373, in init
self._handle = _dlopen(self._name, mode)
OSError: /home/default/miniconda3/envs/multicam1/lib/python3.8/site-packages/torchtext/_torchtext.so: undefined symbol: _ZNK3c104Type14isSubtypeOfExtESt10shared_ptrIS0_EPSo

The following are my pip list
Package Version


absl-py 2.1.0
aiohttp 3.9.3
aiosignal 1.3.1
async-timeout 4.0.3
attrs 23.2.0
cachetools 4.2.4
certifi 2024.2.2
charset-normalizer 3.3.2
contourpy 1.1.1
cycler 0.12.1
dataclasses 0.6
filelock 3.13.1
fonttools 4.50.0
frozenlist 1.4.1
fsspec 2024.3.1
future 1.0.0
google-auth 1.35.0
google-auth-oauthlib 0.4.6
grpcio 1.62.1
idna 3.6
imageio 2.34.0
importlib_metadata 7.0.2
importlib_resources 6.3.1
Jinja2 3.1.3
joblib 1.3.2
kiwisolver 1.4.5
lightning-utilities 0.11.0
Markdown 3.6
MarkupSafe 2.1.5
matplotlib 3.7.5
mpmath 1.3.0
multidict 6.0.5
networkx 3.1
numpy 1.24.4
nvidia-cublas-cu12 12.1.3.1
nvidia-cuda-cupti-cu12 12.1.105
nvidia-cuda-nvrtc-cu12 12.1.105
nvidia-cuda-runtime-cu12 12.1.105
nvidia-cudnn-cu12 8.9.2.26
nvidia-cufft-cu12 11.0.2.54
nvidia-curand-cu12 10.3.2.106
nvidia-cusolver-cu12 11.4.5.107
nvidia-cusparse-cu12 12.1.0.106
nvidia-nccl-cu12 2.19.3
nvidia-nvjitlink-cu12 12.4.99
nvidia-nvtx-cu12 12.1.105
oauthlib 3.2.2
packaging 24.0
pandas 2.0.3
pillow 10.2.0
pip 23.3.1
protobuf 3.20.3
pyasn1 0.5.1
pyasn1-modules 0.3.0
pyDeprecate 0.3.2
pyparsing 3.1.2
python-dateutil 2.9.0.post0
pytorch-lightning 1.6.0
pytz 2024.1
PyYAML 6.0.1
requests 2.31.0
requests-oauthlib 1.4.0
rsa 4.9
setuptools 68.2.2
six 1.16.0
sympy 1.12
tensorboard 2.2.0
tensorboard-plugin-wit 1.8.1
test-tube 0.7.5
torch 2.2.1
torchdata 0.7.0
torchmetrics 1.3.2
torchtext 0.8.0
torchvision 0.17.1
tqdm 4.66.2
triton 2.2.0
typing_extensions 4.10.0
tzdata 2024.1
urllib3 2.2.1
Werkzeug 3.0.1
wheel 0.41.2
yarl 1.9.4
zipp 3.18.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant