-
Notifications
You must be signed in to change notification settings - Fork 18
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
./yolov9-tensorrt.exe ./model.engine ./1096.jpg Error Code 1: Cuda Runtime (an illegal memory access was encountered) #13
Comments
Hi, width=409 and height=962 image right? I will test it. Thank you for informing |
Will you send me your onnx model? |
The weights. zip file contains onnx and jpg images of the target copper surface |
onnx |
156M File size too big: 25 MB |
Do you have a cloud drive that allows you to upload ONNX files? |
Is it a costumized model? what is the number of classes of your model? |
Locate the incorrect statement: |
It is costumized mode |
2 classes |
|
I can't find this line in your code:“detection_attribute_size * num_detections == 84 x 8400”,I don't know where to modify it |
CONF_THRESH = 0.3 |
python |
You trained your model with 2 classes but your onnx file has 80 classes. I think that is the problem. You need to set the number of classes of your model into 2 in reparameterize.py. |
In line 8, fix it as follows: model = Model(cfg, ch=3, nc=2, anchors=3) |
python yolov9_trt.py --engine yolov9-c.engine --data images --outdir output error: |
I modified the program and there is the same issue:In line 8, fix it as follows: model = Model(cfg, ch=3, nc=2, anchors=3) |
File "C:\ProgramData\anaconda3\envs\yolov9\lib\site-packages\numpy\core\fromnumeric.py", line 285, in reshape |
Hi,
./yolov9-tensorrt.exe ./model.engine ./1096.jpg error as follower:
[04/30/2024-10:14:29] [E] [TRT] 1: [weightConverters.cu::nvinfer1::rt::cuda::padCaskConvWeight::166] Error Code 1: Cuda Runtime (an illegal memory access was encountered)
CUDA error 700 at F:\TensorRT-YOLOv9\src\yolov9.cpp:97Assertion failed: 0, file F:\TensorRT-YOLOv9\src\yolov9.cpp, line 97
1096.jpg :409*962
The text was updated successfully, but these errors were encountered: