Ssd.pytorch: question

Created on 1 Jul 2018  路  1Comment  路  Source: amdegroot/ssd.pytorch

can you please explain what does happens here?
self.cfg = (coco, voc)[num_classes == 21]

Most helpful comment

when num_classes is 21, self.cfg=(coco,voc)[1], namely, self.cfg=voc
when num_class is not 21, self.cfg=(coco,voc)[0], namely self.cfg=coco

>All comments

when num_classes is 21, self.cfg=(coco,voc)[1], namely, self.cfg=voc
when num_class is not 21, self.cfg=(coco,voc)[0], namely self.cfg=coco

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FostorHUNT picture FostorHUNT  路  4Comments

mikejmills picture mikejmills  路  6Comments

isalirezag picture isalirezag  路  4Comments

oarriaga picture oarriaga  路  4Comments

luhc15 picture luhc15  路  6Comments