yolov7-face
yolov7-face copied to clipboard
run test_widerface.py failed on the model yolov7-w6
Namespace(weights='./yolov7-w6-face.pt', img_size=960, conf_thres=0.01, iou_thres=0.5, device='4', classes=None, agnostic_nms=False, augment=False, update=False, project='runs/detect', name='exp', exist_ok=False, line_thickness=3, hide_labels=False, hide_conf=False, kpt_label=5, save_folder='./widerface_evaluate/yolov7-w6-im960/', dataset_folder='/vol/research/project/Chan/insightface/detection/retinaface/data/retinaface/val/images/') YOLOv5 \ufffd 198076d torch 1.11.0 CUDA:4 (GeForce GTX TITAN X, 12212.8125MB)
Fusing layers... ./anaconda3/envs/pt1_11/lib/python3.9/site-packages/torch/functional.py:568: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at /opt/conda/conda-bld/pytorch_1646755849709/work/aten/src/ATen/native/TensorShape.cpp:2228.) return _VF.meshgrid(tensors, **kwargs) # type: ignore[attr-defined] Model Summary: 358 layers, 69904644 parameters, 0 gradients, 88.8 GFLOPS
Traceback (most recent call last):
File "./yolov7-face/test_widerface.py", line 135, in
I can repeat the experiment with model yolov7 but not yolov7-w6.
Would you like to tell me how to make it?
Hi! I had the same problem but found that my image height and width couldn't pass the check_img_size function. Reshaping input to the required size fixed the problem.