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

ImportError in running the experiment #1

Open
MXC66ai opened this issue Sep 9, 2024 · 3 comments
Open

ImportError in running the experiment #1

MXC66ai opened this issue Sep 9, 2024 · 3 comments

Comments

@MXC66ai
Copy link

MXC66ai commented Sep 9, 2024

when I run code according to README.md:
cd MobileUNETR
cd experiments/isic_2016/exp_2_dice_b8_a2/

the default gpu device is set to cuda:0 (you can change it)

CUDA_VISIBLE_DEVICES="0" accelerate launch run_experiment.py
屏幕截图 2024-09-09 103932
from .launch importFile "/usr/local/lib/python3.10/dist-packages/accelerate/utils/launch.py", line 33, in module>from ..utils.other import is_port_in_use, merge_dictsFile "/usr/local/lib/python3.10/dist-packages/accelerate/utils/other.py", line 27, in from .transformer engine import convert modelFile "/usr/local/lib/python3.10/dist-packages/accelerate/utils/transformer_engine.py", 1 ine 21, in import transformer_engine.pytorch as te File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/init.py", 1 ine 6, in from .module import LayerNormLinear File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/init .py", line 6, in from .layernorm_linear import LayerNormLinear File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/module/layernor m_linear.py", line 13, in from .. import cpp_extensions as tex File "/usr/local/lib/python3.10/dist-packages/transformer_engine/pytorch/cpp_extensions/ init.py", line 6, in from transformer_engine_extensions import *ImportError: /usr/local/lib/python3.10/dist-packages/transformer_engine_extensions.cpythonl-310-x86_64-linux-gnu.so: undefined symbol: _ZN5torch3jit17parseSchemaOrNameERKNSt7_cxx1112basic_stringIcSt11char_traitsIcESaIcEEE
Does anyone know what this symbol is?

@srperera
Copy link
Collaborator

I am unsure about this particular issue. can you explain a little more about when you encounter this problem?

@MXC66ai
Copy link
Author

MXC66ai commented Sep 20, 2024

The ImportError seems to be caused by an inability to open a dependent file.
step1: pip install -r requirements.txt
step2: cd /MobileUNETR/experiments_medical/isic_2016/exp_2_dice_b8_a2
CUDA_VISIBLE_DEVICES="0" accelerate launch run_experiment.py
image

@yunusstalha
Copy link

It seems like your opencv installation has some problems. Please check this.
https://stackoverflow.com/questions/55313610/importerror-libgl-so-1-cannot-open-shared-object-file-no-such-file-or-directo

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

3 participants