Helloworld.py is not working on windows
XINDoris opened this issue · comments
Is there an existing issue for this?
- I have searched the existing issues
Problem summary
Traceback (most recent call last):
File "InnerEye/ML/runner.py", line 462, in
main()
File "InnerEye/ML/runner.py", line 458, in main
post_cross_validation_hook=default_post_cross_validation_hook)
File "InnerEye/ML/runner.py", line 452, in run
return runner.run()
File "InnerEye/ML/runner.py", line 218, in run
self.run_in_situ(azure_run_info)
File "InnerEye/ML/runner.py", line 408, in run_in_situ
self.ml_runner.run()
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\run_ml.py", line 348, in run
self.run_inference(checkpoint_paths_for_testing, ModelProcessing.DEFAULT)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\run_ml.py", line 471, in run_inference
model_proc=model_proc)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\run_ml.py", line 695, in model_inference_train_and_test
model_proc=model_proc)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\model_testing.py", line 71, in model_test
return segmentation_model_test(config, data_split, checkpoint_paths, model_proc)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\model_testing.py", line 101, in segmentation_model_test
epoch_and_split=epoch_and_split)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\model_testing.py", line 165, in segmentation_model_test_epoch
voxel_spacing_mm=sample.metadata.image_header.spacing
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\pipelines\inference.py", line 47, in predict_and_post_process_whole_image
return self.post_process(self.predict_whole_image(image_channels, voxel_spacing_mm, mask, patient_id))
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\autograd\grad_mode.py", line 27, in decorate_context
return func(*args, **kwargs)
File "C:\Users\Pytorch\InnerEye-DeepLearning\InnerEye\ML\pipelines\inference.py", line 296, in predict_whole_image
for patches_batch in patch_loader:
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data\dataloader.py", line 530, in next
data = self._next_data()
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data\dataloader.py", line 570, in _next_data
data = self._dataset_fetcher.fetch(index) # may raise StopIteration
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data_utils\fetch.py", line 52, in fetch
return self.collate_fn(data)
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data_utils\collate.py", line 157, in default_collate
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data_utils\collate.py", line 157, in
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torch\utils\data_utils\collate.py", line 157, in default_collate
return elem_type({key: default_collate([d[key] for d in batch]) for key in elem})
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torchio\data\image.py", line 746, in init
super().init(*args, **kwargs)
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torchio\data\image.py", line 161, in init
self.path = self._parse_path(path)
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torchio\data\image.py", line 428, in _parse_path
return [self._parse_single_path(p) for p in path]
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torchio\data\image.py", line 428, in
return [self._parse_single_path(p) for p in path]
File "C:\Users\Pytorch.conda\envs\InnerEye\lib\site-packages\torchio\data\image.py", line 418, in _parse_single_path
raise FileNotFoundError(f'File not found: "{path}"')
FileNotFoundError: File not found: "data"
Code for reproduction
InnerEye example code
>python InnerEye/ML/runner.py --model=HelloWorld
Actual outcome
file not found "data" from an example code
Error messages
No response
Expected outcome
solve this bug
System info
No response
updating torchio can solve this problem