A clean, modular implementation of the Yolov7 model family, which uses the official pretrained weights, with utilities for training the model on custom (non-COCO) tasks.
GNU General Public License v3.0
116
stars
35
forks
source link
Once custom yolov7 trained, how can I use it into test.py and detect.py? #17
Hello,
Thanks for your deep dive implementation of custom yolov7 model. Just finalized the training and got best_model.pt and ema_model.pt. Then, I copy these pytorch files in the yolov7 repository I downloaded (your forked version found here: https://github.com/Chris-hughes10/yolov7) in order to use the model with detect.py. But It does not work. Please find below the script I run and the error I got. Can you help me to fix that please? Or can you tell me the steps I have to follow to use the model please?
Many thanks in advance for your helps! Have a nice day!
Hello, Thanks for your deep dive implementation of custom yolov7 model. Just finalized the training and got best_model.pt and ema_model.pt. Then, I copy these pytorch files in the yolov7 repository I downloaded (your forked version found here: https://github.com/Chris-hughes10/yolov7) in order to use the model with detect.py. But It does not work. Please find below the script I run and the error I got. Can you help me to fix that please? Or can you tell me the steps I have to follow to use the model please?
Many thanks in advance for your helps! Have a nice day!
The script:
!python detect.py --weights best_model.pt --conf 0.5 --img-size 640 --source {image_folder} --no-trace
The error: