MedicalZooPytorch icon indicating copy to clipboard operation
MedicalZooPytorch copied to clipboard

AttributeError: 'Namespace' object has no attribute 'loadData'

Open AkhilaPhenomx opened this issue 4 years ago • 1 comments

Hi,

When trying to do inference using iseg2017 model. I am getting below error

File "inference.py", line 80, in <module> main() File "inference.py", line 24, in main training_generator, val_generator, full_volume, affine = medical_loaders.generate_datasets(args, File "/mnt/nas02/Sampledata_BrainVolumetry/brain_try/MedicalZoo/MedicalZooPytorch/lib/medloaders/__init__.py", line 28, in generate_datasets split_id=split_idx, samples=samples_train, load=args.loadData) AttributeError: 'Namespace' object has no attribute 'loadData'

When I check inference.py file its not taking any input argument for loadData

AkhilaPhenomx avatar Mar 26 '21 06:03 AkhilaPhenomx

Hi , i found this on the blog provided by the author on the homepage.

parser.add_argument('--loadData', default=True)

sorry,i cant update the picture.And here is the website. https://theaisummer.com/medical-image-deep-learning/ And i think maybe it can help you

alialigaga avatar Mar 29 '21 10:03 alialigaga