-
Notifications
You must be signed in to change notification settings - Fork 103
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
error in detect.py #73
Comments
python3 detect.py --weights models/yolov7-face.pt --conf 0.25 --source data/images/22_Picnic_Picnic_22_10.jpg --nosave Fusing layers... |
when i run detect.py i am facing some issue hen trying to save the crop images by using command --save-crop.
kindly help me to resolve this issue
error :
computer_vision_project\yolov7-face-github\yolov7-face>python detect.py --weights yolov7-face.pt --source 0 --device 0 --save-crop
Namespace(agnostic_nms=False, augment=False, classes=None, conf_thres=0.25, device='0', exist_ok=False, hide_conf=False, hide_labels=False, img_size=640, iou_thres=0.45, kpt_label=5, line_thickness=3, name='exp', nosave=False, project='runs/detect', save_bin=False, save_conf=False, save_crop=True, save_txt=False, save_txt_tidl=False, source='0', update=False, view_img=False, weights=['yolov7-face.pt'])
YOLOv5 198076d torch 1.7.0+cu101 CUDA:0 (Quadro P1000, 4095.8125MB)
Fusing layers...
Model Summary: 315 layers, 36562547 parameters, 0 gradients, 103.4 GFLOPS
1/1: 0... success (640x480 at 30.00 FPS).
tensor(0.89844, device='cuda:0')
Traceback (most recent call last):
File "detect.py", line 203, in
detect(opt=opt)
File "detect.py", line 122, in detect
save_one_box(xyxy, im0s, file=save_dir / 'crops' / names[c] / f'{p.stem}.jpg', BGR=True)
File "E:\NCSEAL\computer_vision_project\yolov7-face-github\yolov7-face\utils\general.py", line 725, in save_one_box
clip_coords(xyxy, shape)
NameError: name 'shape' is not defined
The text was updated successfully, but these errors were encountered: