facebookresearch / fastMRI

A large-scale dataset of both raw MRI measurements and clinical MRI images.
https://fastmri.org
MIT License
1.29k stars 370 forks source link

Can't find the module of fastmri.evaluate #179

Closed NayeeC closed 2 years ago

NayeeC commented 2 years ago

Hi,

I tried to import the functions under the evaluate.py, however, when I use import fastmri.evaluate, the console tells me that there is no module named evaluate. Then, I used 'fastmri.dir()` to check this, and can't find it either.

I then tried to add from .evaluate import mse in the __init__.py, but it still didn't work.

Can anyone help me with this problem? Thank you in advance.

mmuckley commented 2 years ago

@NayeeC we should probably reconfigure the __init__.py for fastmri. Right now you can probably just do from fastmri import evaluate as is done in mri_module.py.

NayeeC commented 2 years ago

sorry, I think I know how to reconfigure the __init__.py, and I know why this error happens. I modify the file in my work dir, not in the dir of python environment, if I modify in the same file in the Anaconda3\envs\chtorch2\Lib\site-packages\fastmri, then everything works.