DSB2017
DSB2017 copied to clipboard
Something wrong with the features exporting
end preprocessing
(18L, 1L, 208L, 208L, 208L)
Traceback (most recent call last):
File "main.py", line 62, in
I'm wondering if the codes: if 'output_feature' in config: if config['output_feature']: isfeat = True are used for exporting the features. If not, how can I review the features or proposals detected by the model?
config['output_feature'] is a deprecated configuration
I'm not sure about your problem, please give more info?
Would be possible to export/save the features and nodule detection results (ROIs maybe)?
Hi @lfz Is there a way we can simply export the bboxes coordinates and visualize them while testing the detection?
load the pbb, nms it, and you can get the coordinate, see data_classifier
@lfz Thank you. According to the data_classifier,
for idx in idcs:
pbb = np.load(os.path.join(bboxpath,idx+'_pbb.npy'))
pbb = pbb[pbb[:,0]>config['conf_th']]
pbb = nms(pbb, config['nms_th'])
print('bboxes: ',pbb.shape)
lbb = np.load(os.path.join(bboxpath,idx+'_lbb.npy'))
pbb_label = []
for p in pbb:
isnod = False
for l in lbb:
score = iou(p[1:5], l)
if score > config['detect_th']:
isnod = True
break
pbb_label.append(isnod)
self.candidate_box.append(pbb)
self.pbb_label.append(np.array(pbb_label))
self.crop = simpleCrop(config,phase)
How can I visualize the bounding boxes based on the specific slice of the CT scan? That requires the 3D location of a scan?