SSPNet icon indicating copy to clipboard operation
SSPNet copied to clipboard

error about ICBaseSampler

Open shaunyuan22 opened this issue 2 years ago • 0 comments

Thanks for your codes! I met a problem when used SSPNet to train my own dataset, specifically, it will trigger a TypeError as follow: image And i check the code, in line 112 of ic_base_sampler.py, the following codes are the reason:

sampling_result = SamplingResult(pos_inds, neg_inds, bboxes, gt_bboxes, assign_result, gt_flags, iod_max_overlaps+conf) in which the class SamplingResult can only be initiated with seven arguments (including self), hence the iod_max_overlaps+conf will cause the error. And when I remove the last parameter, it stills trigger another error as follow: image this makes me confused. Look forward to hearing from you, thanks a lot :)

shaunyuan22 avatar Nov 23 '22 06:11 shaunyuan22