facebookresearch / fastMRI

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

isADirectoryError #83

Closed LiqunZeng closed 3 years ago

LiqunZeng commented 3 years ago

Hi, When I was trying to run the model on test data, it shows the isADirectoryError:

~/fastMRI-master$ python models/unet/train_unet.py --mode test --challenge singlecoil --data-path DATA --exp unet --out-dir reconstructions --checkpoint /home/fastMRI-master/experiments/lightning_logs/version_12/checkpoints/

... ... return _open_file(name_or_buffer, mode) File "/home/anaconda3/lib/python3.8/site-packages/torch/serialization.py", line 210, in init super(_open_file, self).init(open(name, mode)) IsADirectoryError: [Errno 21] Is a directory: '/home/fastMRI-master/experiments/lightning_logs/version_12/checkpoints/'

mmuckley commented 3 years ago

The argument to --checkpoint should be to a checkpoint file, not a directory.

LiqunZeng commented 3 years ago

The argument to --checkpoint should be to a checkpoint file, not a directory.

Thank you!!!