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

Error when deploying nanodet #15

Open
CheungBH opened this issue Oct 3, 2021 · 5 comments
Open

Error when deploying nanodet #15

CheungBH opened this issue Oct 3, 2021 · 5 comments

Comments

@CheungBH
Copy link

CheungBH commented Oct 3, 2021

Hello. I trained a nanodet model from
https://github.com/RangiLyu/nanodet,
and an error occurred to me when processing
auto status = NanoDet::instance->GetCommandQueue(&command_queue);
:

2021-10-03 22:27:42.800142+0800 TNNDemo[7059:1059735] new NanoDet
E/tnn: virtual tnn::Status tnn::DefaultNetwork::InitLayers(tnn::NetStructure *, tnn::NetResource *) [File /Users/TURUI/Desktop/TNN/source/tnn/core/default_network.cc][Line 236] Error Init layer Conv_0 (err: 4096 or 0x1000)
2021-10-03 22:27:42.839470+0800 TNNDemo[7059:1059735] GPU initialization failed, switch to CPU
E/tnn: virtual tnn::Status tnn::DefaultNetwork::InitLayers(tnn::NetStructure *, tnn::NetResource *) [File /Users/TURUI/Desktop/TNN/source/tnn/core/default_network.cc][Line 236] Error Init layer Conv_0 (err: 4096 or 0x1000)
2021-10-03 22:27:42.845144+0800 TNNDemo[7059:1059735] TNN init failed 4096
(lldb)

It seems that the error is caused by initialization. Do you have any ideas to fix it?

@cmdbug
Copy link
Owner

cmdbug commented Oct 4, 2021

It seems that there is something wrong with the conv layer. Try using the latest code conversion and Library of TNN. Or have you made any other changes?

@CheungBH
Copy link
Author

CheungBH commented Oct 5, 2021

It seems that there is something wrong with the conv layer. Try using the latest code conversion and Library of TNN. Or have you made any other changes?

No, I didn't change anything. And both your demo and TNN library are the latest. Could you pls check the model? I can upload the model.

@CheungBH
Copy link
Author

CheungBH commented Oct 5, 2021

https://drive.google.com/file/d/1cDdwT2sKFIbGsFU1DkuYDc5JiCFrdyWZ/view?usp=sharing

Here's the model. The onnx model outside is the source model, while the two folders contain the converted models and the models with "--half"

@CheungBH
Copy link
Author

Hi. Do you have ideas to fix this bug? I tried using the newest code to convert the model, but it also fails.

@cmdbug
Copy link
Owner

cmdbug commented Oct 12, 2021

See which layer conv0 is and whether the parameters are correct. Let's see under what circumstances this error will be reported in the initialization part of the TNN source code.

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