Closed abhinavrawat27 closed 1 year ago
We only support the v0.1 branch of yolov7, means you can only use the .yaml in this folder https://github.com/WongKinYiu/yolov7/tree/v0.1/cfg/deploy
Hi, do you mean while training, the yamil which I used cfg/training/yolov7-custom.yaml
should be used from v0.1 branch?
No, you can only use the yaml files in this folder https://github.com/WongKinYiu/yolov7/tree/v0.1/cfg/deploy
If you have a custom model, and the model structure is different, you need to adapt the model definitions in C++ code as well https://github.com/wang-xinyu/tensorrtx/blob/f92dcf43dcbe346c357edfa4cc976eb9d0d95470/yolov7/src/model.cpp#L1775
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Env
About this repo
Your problem
I have trained
yolov7 tiny
model on a custom dataset. I have tested the model and it seems to be working perfectly fine. Below is the command I used to train the modelpython train.py --workers 1 --batch-size 2 --epochs 200 --device 0 --img 640 --data data/custom_data.yaml --hyp data/hyp.scratch.custom.yaml --cfg cfg/training/yolov7-custom.yaml --name yolov7-custom --weights yolov7-tiny.pt
Now on
Jetson Xavier
I want to generate its.engine
file. I have successfully converted.pt
to.wts
. I have updated the number of classes to 1 inconfig.h
. I have created the build directory and also rancmake ..
command. While runningmake
command, it showed 2 warnings:But it ran fine with no other issues. Then finally after running the command
sudo ./yolov7 -s best-tiny.wts best-tiny.engine t
it showed below errors:Please if you can let me know what I am missing. Thanks