-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yolov4-tiny retrain #99
Comments
你把 -pt去掉就可以了。 |
您好, |
-pt是在使用coco80类预训练文件的时候使用。mAP训练也无法提升吗? |
您好,我剛剛又重新試了一次不加 -pt 的指令,發現mAP有變化了 Epoch gpu_mem GIoU obj cls total targets img_size
|
不会一直很低吧?还是要看最后的best.pt,有突变的很低也正常 |
您好,後來我retrain完後 mAP有上升一點。 |
转化是darknet weights是可以的,你可以用我的convert.py这个文件。 |
您好,我試了轉換 .pt 的指令 但出現以下錯誤,請問是有哪邊需要修改的嗎? 謝謝您。 Traceback (most recent call last): |
Getting a similar error after quantization for tiny-yolov4 with
@SpursLipu Any suggestions to make it work? |
我在retrain 剪支過的模型時,出現了以下問題
Traceback (most recent call last):
File "train.py", line 985, in
train(hyp) # train normally
File "train.py", line 164, in train
load_darknet_weights(model, weights, pt=opt.pt, BN_Fold=opt.BN_Fold)
File "/home/joy/yolo_darknet/YOLOv3v4-ModelCompression-MultidatasetTraining-Multibackbone/models.py", line 632, in load_darknet_weights
conv_w = torch.from_numpy(weights[ptr:ptr + num_w]).view_as(conv_layer.weight)
RuntimeError: shape '[241, 363, 3, 3]' is invalid for input of size 687660
我的指令是
python3 train.py --data ../Person_detection/cfg/person.data -pt --cfg ../prune_0.1_Person_detection/prune_0.1_cfg/prune_0.1_yolov4-tiny-obj.cfg --weights ../prune_0.1_Person_detection/prune_0.1_weights/prune_0.1_yolov4-tiny-obj_500000.weights --img-size 160
想請問一下是不是我下的指令哪邊有錯誤,謝謝。
The text was updated successfully, but these errors were encountered: