Closed yaoandy107 closed 4 months ago
I followed the instructions you provided and successfully replicated the process. I downloaded the model from YOLOv9, and the execution proceeded smoothly.
I guess the issue might be with model = model.fuse()
. Could you please comment out this line?
@laugh12321 Thank you for your quick response! I create a Colab for you to reproduce https://colab.research.google.com/drive/1QciXnx2nwHkFs2DWOhpTx_V6v1Rp57HX?usp=sharing
@laugh12321 Thank you very much! Commenting out the line worked! Besides, what is the line for? Will it affect the outcome?
@yaoandy107 You're welcome! I'm glad commenting out the line resolved the issue. Regarding your question, is the "line" you mentioned referring to the 4 warnings displayed in the log? If so, those warnings shouldn't affect the accuracy of the model; they're just notifications.
@laugh12321 Sorry for not making it clear earlier. I am asking about the line model = model.fuse()
.
@yaoandy107 Got it, thanks for clarifying! The fuse()
function is used to merge convolutional (conv) and batch normalization (bn) layers in order to speed up the model's inference time without affecting accuracy.
@laugh12321 Thank you for your quick response! I create a Colab for you to reproduce https://colab.research.google.com/drive/1QciXnx2nwHkFs2DWOhpTx_V6v1Rp57HX?usp=sharing
Thanks for your great work! I'm trying to convert the gelan-c to tensorRT, but get the error below
This is the command I executed