Skip to content
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

kernel weights has count 2688 but 32640 was expected #1513

Open
SunnyBoy-GitHub opened this issue May 5, 2024 · 1 comment
Open

kernel weights has count 2688 but 32640 was expected #1513

SunnyBoy-GitHub opened this issue May 5, 2024 · 1 comment

Comments

@SunnyBoy-GitHub
Copy link

Env

About this repo

./yolov5_det -s bestss.wts bestss.engine s
[W] [TRT] The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
Loading weights: bestss.wts
(Unnamed Layer* 201) [Convolution]:kernel weights has count 2688 but 32640 was expected
[E] [TRT] 4: (Unnamed Layer* 201) [Convolution]: count of 2688 weights in kernel, but kernel dimensions (1,1) with 128 input channels, 255 output channels and 1 groups were specified. Expected Weights count is 128 * 11 * 255 / 1 = 32640
[E] [TRT] 4: [convolutionNode.cpp::computeOutputExtents::57] Error Code 4: Internal Error ((Unnamed Layer
201) [Convolution]: number of kernel weights does not match tensor dimensions)
大佬这种转模型为什么会出现最终输出参数不同呢,大佬有办法解决吗

@wang-xinyu
Copy link
Owner

修改这个了吗

Update kNumClass in src/config.h if your model is trained on custom dataset

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants