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

packages ml_collections, einops and monai aren't declared in setup.py #39

Open
yeyeyeping opened this issue Apr 7, 2023 · 1 comment

Comments

@yeyeyeping
Copy link

nice work!
PyMIC seems to have dependencies on ml_collections, einops,monai , but these packages aren't declared in setup.py. Someone who use PyMIC may still need to run pip install ml_collections einops monai even after pip install pymic.

(pymic) ➜  ~ pip list |grep -i "pymic"
PYMIC                   0.4.0
(pymic) ➜  ~ pymic_train /home/yeep/project/py/sph/sph2d/unet.cfg
Traceback (most recent call last):
  File "/home/yeep/env/miniconda/envs/pymic/bin/pymic_train", line 5, in <module>
    from pymic.net_run.train import main
  File "/home/yeep/env/miniconda/envs/pymic/lib/python3.9/site-packages/pymic/net_run/train.py", line 10, in <module>
    from pymic.net_run.agent_seg import SegmentationAgent
  File "/home/yeep/env/miniconda/envs/pymic/lib/python3.9/site-packages/pymic/net_run/agent_seg.py", line 20, in <module>
    from pymic.net.net_dict_seg import SegNetDict
  File "/home/yeep/env/miniconda/envs/pymic/lib/python3.9/site-packages/pymic/net/net_dict_seg.py", line 24, in <module>
    from pymic.net.net2d.trans2d.transunet import TransUNet
  File "/home/yeep/env/miniconda/envs/pymic/lib/python3.9/site-packages/pymic/net/net2d/trans2d/transunet.py", line 15, in <module>
    import pymic.net.net2d.trans2d.transunet_cfg as configs
  File "/home/yeep/env/miniconda/envs/pymic/lib/python3.9/site-packages/pymic/net/net2d/trans2d/transunet_cfg.py", line 4, in <module>
    import ml_collections
ModuleNotFoundError: No module named 'ml_collections'
@mehrnia
Copy link

mehrnia commented Oct 3, 2024

I noticed the same thing

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

2 participants