Questions tagged [yolov7]

You Only Look Once (YOLO) is a real-time object detection system written in C. Use this tag for questions about YOLO version 7.

You Only Look Once (YOLO) is a real-time object detection system developed for high speed object detection within images.

87 questions
0
votes
1 answer

YOLOv7 sagemaker inference issue

I am having an issue with AWS Sagamaker YOLOv7 inference code. inside the inference.py's model_fn line detector = torch.hub.load(local_repo, 'custom', *args, source='local', trust_repo=True, force_reload=True,verbose=True).to(device) returns…
0
votes
0 answers

I need to automate the task of labeling the image dataset for Yolov7 based on PyTorch

I need to automate the task of labeling the image dataset for Yolov7 based on PyTorch. Are there any labeling tools or Python scripts available for this task? Labeling the image dataset manually using different labeling tools(such as labelImg) takes…
0
votes
1 answer

How to solve this error? RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

This is WongKinYiu / PyTorch_YOLOv4 problem. I found many solutions of this problem in YOLOv7, and no solution in YOLOv4. Since, the community here is more active. Thus, I try to ask here also. This is the link to WongKinYiu loss.py Traceback (most…
MheadHero
  • 103
  • 1
  • 1
  • 7
0
votes
1 answer

How can I load model both yolov5 and yolov7

When I load yolov5 and yolov7 in python, I get error like this. Can't get attribute 'MP' on 'MP' is yolov7 attribute... How can I load yolov7/models/common.py ? How can I set…
0
votes
1 answer

I got a Type Error while training the dataset in YOLOv7, how to fix this?

when I try to run train.py code, I get the error "TypeError: No loop matching the specified signature and casting was found for ufunc greater". I would be very grateful if you could help me figure out how to fix this. The details of the error are as…
0
votes
1 answer

Deploying a YOLOv7 trained model using C++

I have trained a YOLOv7 model on a custom dataset. I want to use the trained model in my C++ project. I tried to do so using .pt weights and .onnx weights, but I'm continuously getting errors. As advised here, I performed 'Reparameterization' on the…
Mohamed Hedeya
  • 153
  • 5
  • 22
0
votes
1 answer

How to call yolov7 detect method from a python program

So far, I am using detect.py with appropiate arguments for the object detection tasks, using a custom trained model. How can I call the detect method with the parameters(weights, source, conf, and img_size) from a python program, instead of using…
0
votes
2 answers

How to extract and visualize feature value for an arbitrary layer during inference with YOLOv7?

In my case, I would like to extract and visualize the features output in layers 102, 103, 104 in the following code in cfg/training/yolov7.yaml. # yolov7 head head: [[-1, 1, SPPCSPC, [512]], # 51 [-1, 1, Conv, [256, 1, 1]], [-1, 1,…
neg
  • 1
  • 3
0
votes
0 answers

Object Detection - Yolov7 Training issue on Google Colab

I am training the Yolov7 Object detection model but facing an error in the training, Previously it was working correctly but now facing an error. I have attached the error screenshot.
0
votes
0 answers

FileNotFoundError: [Errno 2] No such file or directory: '/opt.yaml'

File "/yolov7/train.py", line 581, in with open(Path(ckpt).parent.parent / 'opt.yaml') as f: FileNotFoundError: [Errno 2] No such file or directory: '/opt.yaml'` I use yolov7. I have trained am model from scratch so I want to resume my…
0
votes
2 answers

Dataset not found .. Missing Path .. while training the model using yolo v8

code cell- from ultralytics import YOLO model = YOLO("yolov8n.pt") results = model.train(data="/workspace/awadh/nvidia/apis_mellifera/v8/datasets/Apis_mellifera_IIT_front_view-1/data.yaml", epochs=200, batch=16, imgsz=640) Error…
0
votes
0 answers

Issue when loading ONNX model with OpenCV

I trained a custom YOLOv7 object detection model in Google Colab. I exported it to .onnx file using this command: python export.py --weights runs/train/exp/weights/best.pt --grid --end2end --simplify --topk-all 100 --iou-thres 0.65 --conf-thres 0.3…
ZawaXXD
  • 1
  • 1
0
votes
0 answers

How to save a YOLOv7 model from Google collab

I've seen tons of tutorials about using YOLOv7 for object detection, and I followed one to detect license plates. I cloned the repo from github, put my data in, uploaded to drive and ran it on google collab. The tutorials stop at testing. How do I…
0
votes
0 answers

How to get proper results detecting images with yolov7?

This is a general question. I tried detecting objects in pictures downloaded from roboflow-datasets with yolov7, these were quite simple objects with a solid background (sun in the sky, balloons in the sky, rabbits on grass etc. ) Even though i had…
0
votes
0 answers

How to display a message if no object of interest in detected by yolov7?

I am working on a instance segmentation and object detection problem. The input is a cctv video and there are some time where there is nothing to detect. I would like a message "nothing of interest." to be displayed during this time. Should I code…