Closed sophie-isobel closed 5 years ago
update: I converted the data_dict['class_targets'] in the batchgenerator - augmentations - utils.py file from a numpy array to a list, so that the sequence of n candidates could be added.
See the printed outputs below.
This is now training and testing with no errors and I think looking at the results it is doing the right thing!
Hi @pfjaeger, thanks for sharing your great work on this repository.
I am having the same issue as @paul-bd had, I also only have data labelled as foreground (e.g. 1 vs. 0) and I am getting the following errors from convert_seg_to_bounding_box_coordinates
I followed your advice and set all get_rois_from_seg_flag=True in data_loader.py, I have also set get_rois_from_seg_flag=True in the batchgenerator files: transforms -> utility_transforms.py and augmentations -> utils.py.
And I have set it to just draw random samples from all patients in training data for batch generation (line 225):
When I change line 235 to batch_targets.append(0) I still get ValueError: setting an array element with a sequence:
note, my class targets are set as 0 for each individual pid in data:
Would you know why I am still getting this error? thanks in advance.
Originally posted by @sophie-isobel in https://github.com/pfjaeger/medicaldetectiontoolkit/issues/11#issuecomment-522223331