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

How to install the models package? #2

Open
YLiu-creator opened this issue Dec 22, 2023 · 2 comments
Open

How to install the models package? #2

YLiu-creator opened this issue Dec 22, 2023 · 2 comments

Comments

@YLiu-creator
Copy link

/home/liuyang/anaconda3/envs/WeaklyCloudDetection/bin/python /home/liuyang/pyCharmProject/DiffusionModel/cond_ddpm_wsss-main/scripts/train_tumor_ddfm.py
Traceback (most recent call last):
File "/home/liuyang/pyCharmProject/DiffusionModel/cond_ddpm_wsss-main/scripts/train_tumor_ddfm.py", line 12, in
from improved_diffusion.script_util import (
File "/home/liuyang/pyCharmProject/DiffusionModel/cond_ddpm_wsss-main/improved_diffusion/script_util.py", line 7, in
from .nnformer_diffusion import nnFormer
File "/home/liuyang/pyCharmProject/DiffusionModel/cond_ddpm_wsss-main/improved_diffusion/nnformer_diffusion.py", line 7, in
from models.neural_network import SegmentationNetwork
ModuleNotFoundError: No module named 'models'

I face a problem about the ./improved_diffusion/nnformer_diffusion.py file:
from models.neural_network import SegmentationNetwork
ModuleNotFoundError: No module named 'models'

@Liuhm0710
Copy link

I also face this quesion. i tried with pip but could not install, use the interpreter in Pycharm to install models package also failed

@Liuhm0710
Copy link

@YLiu-creator @xhu248 Hello i wonder whether the quesion above has been resolved or maybe give me some advice, thanks alot

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