Yukiya-Umimi / ITUNet-for-PICAI-2022-Challenge

Apache License 2.0
15 stars 5 forks source link

SageMaker pipeline #11

Closed joeranbosma closed 1 year ago

joeranbosma commented 1 year ago

Update script to prepare detection dataset:

Also:

joeranbosma commented 1 year ago

The proposed changes result in code that does not work, it fails with the following error:

Traceback (most recent call last):
  File "/opt/algorithm/ITUNet-for-PICAI-2022-Challenge/step_3_prepare_detection_data.py", line 73, in <module>
    main()
  File "/opt/algorithm/ITUNet-for-PICAI-2022-Challenge/step_3_prepare_detection_data.py", line 36, in main
    predict_test5c(
  File "/opt/algorithm/ITUNet-for-PICAI-2022-Challenge/classification/cls_data.py", line 133, in predict_test5c
    weight_list = get_weight_list(weight_path,choice=[1,2,3,4,5])
  File "/opt/algorithm/ITUNet-for-PICAI-2022-Challenge/classification/cls_data.py", line 46, in get_weight_list
    if choice is not None and eval(str(fold.name)[-1]) not in choice:
  File "<string>", line 1, in <module>
NameError: name 'h' is not defined

The issue seems to be in eval(str(fold.name)[-1]).

joeranbosma commented 1 year ago

When testing the code some more issues came up. I've now fixed these issues. Please review the code and merge it in if you agree with the changes.

joeranbosma commented 1 year ago

I've now also added the code for the final training step: training the semi-supervised segmentation model.