-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
detect.py #50
Comments
I do not know meaning of |
应该是书写错误了吧 我在运行detect.py时,发现prediction是[[[tesnor ... ], [tesnor ...]], [[tesnor ... ], [tesnor ...]]],在nms的时候必须按照下面的方式获取数据才不会报错,不知道为何会这样: |
although not ERROR , only solves the first pic of folder... if you want to apply NMS to every pic, just iterate |
Why are there two results and there is a difference between them? |
The correct writing should be: "device = prediction.device." |
For list device not found ,under utils->general.py change line 903 as |
Thanks a lot, it works. |
After I trained a yolov9-e model, I wanted to run inference using
where I run into the error:
The error got fixed as per Jaykumaran suggestion by chaging line 903 within /utils/general.py from: to: |
detect.py working on Kaggle after using |
|
Mark. Thank you |
device = prediction[1]
mps = 'mps' in device.type # Apple MPS
if mps: # MPS not fully supported yet, convert tensors to CPU before NMS
prediction = prediction.cpu()
bs = prediction.shape[0] # batch size
nc = prediction.shape[1] - nm - 4 # number of classes
mi = 4 + nc # mask start index
xc = torch.max(prediction[:, 4:mi], dim=1)[0] > conf_thres
TypeError: argument of type 'builtin_function_or_method' is not iterable,The function or method does not support iterable,how to slove it?
The text was updated successfully, but these errors were encountered: