Closed gabrielziegler3 closed 3 years ago
You passed in a str
for the path instead of a Path
object. The type annotation indicates only Path
objects should be used.
https://docs.python.org/3/library/pathlib.html
In the standard script the fetch_dir
function returns a Path
object. https://github.com/facebookresearch/fastMRI/blob/4254a6aacd920fd0c30e1b8876614e24fb51fb82/fastmri/data/mri_data.py#L98
Or, if you use argparse
, that should be a Path
object as well. https://github.com/facebookresearch/fastMRI/blob/4254a6aacd920fd0c30e1b8876614e24fb51fb82/fastmri/pl_modules/data_module.py#L271-L276
So the only thing I can think of is maybe you hardcoded a string?
Indeed I was passing a hardcoded string and didn't notice the type annotation. I apologize and appreciate the very detailed response, Matthew. Have a great week!
No need to apologize - perfectly reasonable thing to do. You have a good week as well!
I am trying to replicate the UNet training and I keep getting the following error:
the code I am running:
My packages versions:
Why is there a string "division"? Am I doing something wrong?