yanxp / MetaR-CNN

Meta R-CNN : Towards General Solver for Instance-level Low-shot Learning
https://yanxp.github.io/metarcnn.html
177 stars 23 forks source link

AttributeError: 'pascal_voc' object has no attribute 'set_roidb' #18

Closed Chee-11 closed 4 years ago

Chee-11 commented 4 years ago

In the train phase 2, there is an error AttributeError: 'pascal_voc' object has no attribute 'set_roidb' happening in the code imdb.set_roidb(roidb). The location of this code is as follows: # train_metarcnn.py if args.phase == 2: roidb = filter_class_roidb(roidb, args.shots, imdb) ratio_list, ratio_index = rank_roidb_ratio(roidb) imdb.set_roidb(roidb) So, what should I do to sovle this?