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: cannot import name 'TaskType' from 'pymic' #41

Open
TimeChanged opened this issue Oct 27, 2023 · 2 comments
Open

ImportError: cannot import name 'TaskType' from 'pymic' #41

TimeChanged opened this issue Oct 27, 2023 · 2 comments

Comments

@TimeChanged
Copy link

Sorry to bother.

I use pip install PYMIC for the latest 0.4.0 version.
And use it to run projects using pymic but have this issue.
together with something else, seems like I can't use

To enable the following instructions: SSE SSE2 SSE3 SSE4.1 SSE4.2 AVX AVX2 AVX_VNNI FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
Traceback (most recent call last):
File "f:\ISY5001\task\MIS-FM-main\predict.py", line 10, in
from pymic.net_run.agent_seg import SegmentationAgent
File "E:\software\anaconda3\Lib\site-packages\pymic\net_run\agent_seg.py", line 20, in
from pymic.net.net_dict_seg import SegNetDict
import pymic.net.net2d.trans2d.transunet_cfg as configs
File "E:\software\anaconda3\Lib\site-packages\pymic\net\net2d\trans2d\transunet_cfg.py", line 4, in
import ml_collections
ModuleNotFoundError: No module named 'ml_collections'

How can I solve that?

@chenyucong1
Copy link

Hello, I have the same problem
“ from pymic import TaskType
ImportError: cannot import name 'TaskType' from 'pymic' ”

@taigw
Copy link
Contributor

taigw commented Jan 10, 2024

Hello, the problem has been fixed, and you can try the latest version of PyMIC by installing PyMIC from the dev branch (download the source code and use python setup.py install). We will also include it into the master branch and released version soon.

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