pytorch-0.4-yolov3
                                
                                
                                
                                    pytorch-0.4-yolov3 copied to clipboard
                            
                            
                            
                        Problem with training YOLOv2
Hi @andy-yun I trained normally with yoloV3, tinyV3, tinyV2. But with YoloV2 model, it raises this error:
Traceback (most recent call last):
File "train.py", line 626, in 
Do you know the reason why? Thanks.
@mrkieumy you should check the tcls value (tcls is target). I am guessing that tcls is empty. It means that there is not assigned target value.
@andy-yun, Thanks, you mean tcls in yolo_layer.py or in region_layer? I'm sorry I don't understand exactly those tcls value. Is there the difference between V2 and V3,tinyV3,tinyV2 to make us fix the tcls? I think if it wrong with yolov2, it must be wrong with tinyv2 too. But the code runs normally with tinyv2. Do you know exactly why? Thanks.
@mrkieumy tcls means class information from ground truth value. if you adopt yolov2, then tcls at region_layer.py is used, else tcls of yolo_layer.py is used. tcls at region_layer.py is compared at CrossEntropyLoss, tcls at yolo_layer.py is compared at BCELoss.
Hi, I suffer from the same error when training on VOC dataset, and i think tcls is not empty. I need help. Thanks.
@mrkieumy @PurpleMStone Both you should check config and data files. The codes are well worked on coco and voc dataset.
There may be some bugs in function data_augmentation_nocrop in image.py? When i set the crop=True, things turn out be right.