I have a TypeError in utils.py
kushinyi opened this issue · comments
kushinyi commented
When I run exec.py, it found an TypeError.
Can you help me to solve this problem? thanks in advance.
this is my error
Traceback (most recent call last):
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/site-packages/batchgenerators/dataloading/multi_threaded_augmenter.py", line 48, in producer
item = transform(**item)
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/site-packages/batchgenerators/transforms/abstract_transforms.py", line 88, in __call__
data_dict = t(**data_dict)
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/site-packages/batchgenerators/transforms/utility_transforms.py", line 228, in __call__
data_dict = convert_seg_to_bounding_box_coordinates(data_dict, self.dim, self.get_rois_from_seg_flag, class_specific_seg_flag=self.class_specific_seg_flag)
File "/home/cadd/anaconda3/envs/tf1/lib/python3.6/site-packages/batchgenerators/augmentations/utils.py", line 571, in convert_seg_to_bounding_box_coordinates
p_roi_labels_list.append(data_dict['class_target'][b][rix] + 1)
TypeError: can only concatenate list (not "int") to list