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

reshape mod to ncnn #190

Closed
natxopedreira opened this issue Jul 28, 2022 · 3 comments
Closed

reshape mod to ncnn #190

natxopedreira opened this issue Jul 28, 2022 · 3 comments

Comments

@natxopedreira
Copy link

Hello

I read you blog post to see how to convert model to ncnn usage, and also read this pinned issue #53

Is mentioned to change the output of reshape layer to -1, in both docs mention 3 heads but im my param file i see other structure with a different amount of layers so im a bit confused.

Can you point me which reshape layers need to be changed, i think those (Reshape_359, Reshape_364, Reshape_369) but not sure

Thanks!

Reshape                  Reshape_359              1 1 onnx::Reshape_564 onnx::Transpose_576 0=6400 1=6 2=3
Permute                  Transpose_360            1 1 onnx::Transpose_576 onnx::Sigmoid_577 0=1
Sigmoid                  Sigmoid_361              1 1 onnx::Sigmoid_577 onnx::Reshape_578
Reshape                  Reshape_362              1 1 onnx::Reshape_578 onnx::Concat_585 0=6 1=-1
Convolution              Conv_363                 1 1 input.292_splitncnn_0 onnx::Reshape_586 0=18 1=1 5=1 6=1728
Reshape                  Reshape_364              1 1 onnx::Reshape_586 onnx::Transpose_598 0=1600 1=6 2=3
Permute                  Transpose_365            1 1 onnx::Transpose_598 onnx::Sigmoid_599 0=1
Sigmoid                  Sigmoid_366              1 1 onnx::Sigmoid_599 onnx::Reshape_600
Reshape                  Reshape_367              1 1 onnx::Reshape_600 onnx::Concat_607 0=6 1=-1
Convolution              Conv_368                 1 1 input.324 onnx::Reshape_608 0=18 1=1 5=1 6=1728
Reshape                  Reshape_369              1 1 onnx::Reshape_608 onnx::Transpose_620 0=400 1=6 2=3
Permute                  Transpose_370            1 1 onnx::Transpose_620 onnx::Sigmoid_621 0=1
Sigmoid                  Sigmoid_371              1 1 onnx::Sigmoid_621 onnx::Reshape_622
Reshape                  Reshape_372              1 1 onnx::Reshape_622 onnx::Concat_629 0=6 1=-1
Concat                   Concat_373               3 1 onnx::Concat_585 onnx::Concat_607 onnx::Concat_629 output
@ppogg
Copy link
Owner

ppogg commented Aug 3, 2022

what is the version of ncnn you use?

@natxopedreira
Copy link
Author

I use this one NCNN-20210525 as is mentioned

@ppogg
Copy link
Owner

ppogg commented Aug 5, 2022

I am sorry to reply you lately,look at this
#189

@ppogg ppogg closed this as completed Apr 1, 2024
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