-
Notifications
You must be signed in to change notification settings - Fork 75
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
Model not working with custom YOLOv8 weights #29
Comments
what is the error?
…On Tue, Mar 19, 2024 at 9:01 PM userkw ***@***.***> wrote:
I'm encountering an issue with my YOLOv8 model when attempting to use
custom weights. Despite specifying the appropriate configuration
parameters, the model does not seem to be detecting objects correctly.
Below, I've outlined the specifics of the problem along with relevant code
snippets and command line execution details:
""
model = YOLO('yolov8_cus.pt') # Loading custom YOLOv8 weights
model.overrides['conf'] = 0.3 # NMS confidence threshold
model.overrides['iou'] = 0.4 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # Maximum number of detections per image
names = model.names
""
cmd line i used :!python track_v8.py --source cas_yl.mp4 --track
—
Reply to this email directly, view it on GitHub
<#29>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIBKZLLIESCIWZ6OFS7ZMILYZBK63AVCNFSM6AAAAABE5ZYE5OVHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TKMRZGY3DMMA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
The problem arises when I use my model here: |
@bharath5673 when i use my custom model i get this error i rename my custom model best.pt :yolov5s: Traceback (most recent call last): |
I'm encountering an issue with my YOLOv8 model when attempting to use custom weights. Despite specifying the appropriate configuration parameters, the model does not seem to be detecting objects correctly. Below, I've outlined the specifics of the problem along with relevant code snippets and command line execution details:
""
model = YOLO('yolov8_cus.pt') # Loading custom YOLOv8 weights
model.overrides['conf'] = 0.3 # NMS confidence threshold
model.overrides['iou'] = 0.4 # NMS IoU threshold
model.overrides['agnostic_nms'] = False # NMS class-agnostic
model.overrides['max_det'] = 1000 # Maximum number of detections per image
names = model.names
""
cmd line i used :!python track_v8.py --source cas_yl.mp4 --track
The text was updated successfully, but these errors were encountered: