-
-
Notifications
You must be signed in to change notification settings - Fork 16.7k
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
Getting error while producing latency through yolo.py #2951
Comments
@glenn-jocher Your response and a bit of help would really be appreciable. Can you please let me know? |
@jaskiratsingh2000 I already answered this question previously in #2898 (comment) |
@glenn-jocher Things were not clear for me. You mentioned running this following command with profiling made to true:
but I am getting this error:
If I change the "device" to 'cuda' I still get lots of runtime errors. Can you please check and let me know exactly here? @glenn-jocher |
@glenn-jocher I tried creating the device by following the command:
then on running the profiling commands I get the following out put and runtime errors.
|
Hey, @glenn-jocher Did you get a chance to check on the above? I am still not able to produce the output you mentioned. Please help me out in knowing about this. It would be highly appreciative of your response and help. |
@jaskiratsingh2000 my previous response answers your question: #2898 (comment) |
@glenn-jocher It does answer my question but things are not clear to me exactly what I have to do. What you mentioned in this comment I ran the model that way but I am getting the error as stated above that's why I am pinging you that I am stuck here please help me with that if possible. I would really be grateful to you. @glenn-jocher you told me to run directly this and when I run that I get the above runtime error.
|
If you follow #2898 (comment) and you are seeing errors then either you have modified your code, your code is out of date, or you have environment problems. See below. 👋 Hello, thank you for your interest in our work! This issue seems to lack the minimum requirements for a proper response, or is insufficiently detailed for us to help you. Please note that most technical problems are due to:
$ git clone https://github.com/ultralytics/yolov5 yolov5_new # clone latest
$ cd yolov5_new
$ python detect.py # verify detection
# CODE TO REPRODUCE YOUR ISSUE HERE
If none of these apply to you, we suggest you close this issue and raise a new one using the 🐛 Bug Report template, providing screenshots and a minimum reproducible example of your issue. Thank you! RequirementsPython 3.8 or later with all requirements.txt dependencies installed, including $ pip install -r requirements.txt EnvironmentsYOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
StatusIf this badge is green, all YOLOv5 GitHub Actions Continuous Integration (CI) tests are passing. These tests evaluate proper operation of basic YOLOv5 functionality, including training (train.py), testing (test.py), inference (detect.py) and export (export.py) on MacOS, Windows, and Ubuntu. |
I am not sure if you are able to get me. I ran the steps you mentioned got an error then raised above. I am just asking about the way you produce it. What all things and commands you ran |
Follow #2898 (comment) |
@jaskiratsingh2000 The variable 'device' is already listed in the main function on Lines 255 to 270 in 1849916
See line 262, so you don't need to write another like you doing in the #2951 (comment). Line 41 in 1849916
Then you just run |
❔Question
Getting error while producing latency through yolo.py
Additional context
I want to view the latency output as discussed in issue #2898 but I feel like this is an issue that should go independently. I want to produce this output:
I was able to produce the parameter output by running the following commands
@glenn-jocher mentioned that I can get the output of the latency of layer by layer which is the following
by running the model here #2898 (comment)
whereas, I am unable to do that because as I run this command to produce the above out I get the error.
command run:
Error got:
The text was updated successfully, but these errors were encountered: