I found your work very inspiring, and I made my own segmentation model follwing your idea. But I found a problem in the validation step.
In your main.py file, line 456:
for i,subj in enumerate(test_dataset.subjects):
...
I think in the enumerate parentheses, it should not be test_dataset.subjects because the the subjects object is the raw image list without preprocessing (aka transforms in the data_function.py). Maybe here should be:
for i,subj in enumerate(test_dataset.valid_set):
...
Because valid_set(also there may be a typo that you use training_set in test_loader) is the one with transforms(normalization) applied.
Maybe my comprehension is not correct and you have your own thoughts, so could you please share your idea on this step? Thank u
Hi there,
I found your work very inspiring, and I made my own segmentation model follwing your idea. But I found a problem in the validation step.
In your
main.py
file, line 456:I think in the enumerate parentheses, it should not be
test_dataset.subjects
because the thesubjects
object is the raw image list without preprocessing (akatransforms
in thedata_function.py
). Maybe here should be:Because
valid_set
(also there may be a typo that you usetraining_set
in test_loader) is the one withtransforms
(normalization) applied.Maybe my comprehension is not correct and you have your own thoughts, so could you please share your idea on this step? Thank u