vasgaowei / pytorch_MELM

The pytorch implementation of the Min-Entropy Latent Model for Weakly Supervised Object Detection
104 stars 19 forks source link

File "./MELM-master/tools/../lib/nets/network.py", line 384, in get_refine_supervision roi_weights[:, 0] = max_box_score[gt_assignment, 0] ValueError: could not broadcast input array from shape (761) into shape (500) #5

Open nawang0226 opened 5 years ago

nawang0226 commented 5 years ago

Hi, following the ReadMe, whatever it just doesn't work and I don't know how to fix it. The problem is

Thanks for all have you done and look forward to your early reply to this problem.

zwy1996 commented 5 years ago

Hi, I met the same error, did you handle it?

nawang0226 commented 5 years ago

no, haven't handle it.

vasgaowei commented 5 years ago

I am sorry, last week I made a update for supporting varied numbers of ROIs for forward operations in case of not enough GPU memory. And you can fix the bugs as following: in network.py file, in _add_losses functions, in lines 244, change to self.get_refine_supervision(det_cls_product, self._image_gt_summaries['ss_boxes'][self.ss_boxes_indexes ,:],self._image_gt_summaries['image_level_label']). And for line 257 do the same operation. And I will fix this small bugs soon.