Issue Loading Custom YOLO Model (.pt) Inside PaddleDetection Environment Hi, #9452
hadasdonat
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I’m trying to run the following YOLO command inside my PaddleDetection virtual environment:
(venv310) PS C:\Users\User\MODEL\PaddleDetection> yolo detect predict model="weapons\best.pt" source="C:\Users\User\Videos\CHANCE\DSC04079.JPG" save=True
But I’m getting the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'weapons\best.pt'
The file best.pt does exist at:
C:\Users\User\PaddleDetection\weapons\best.pt
I also tried using the full path, but YOLO still fails to load the model.
My questions are:
1️⃣ Does YOLO need to be executed only from a specific directory (e.g., the official YOLOv8 folder)?
2️⃣ Is it required to place the .pt model file in a specific path inside the environment for it to be detected?
Any guidance on recommended folder structure or best practices for running custom YOLO models inside PaddleDetection would be very helpful.
Thank you! 🙏
Hadas
Beta Was this translation helpful? Give feedback.
All reactions