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

Wrong output from StubLayer #25

Closed
edward9112 opened this issue Jan 20, 2022 · 2 comments
Closed

Wrong output from StubLayer #25

edward9112 opened this issue Jan 20, 2022 · 2 comments

Comments

@edward9112
Copy link

edward9112 commented Jan 20, 2022

Hello,

I tried to use the following model:
Expected output:
Name: age_conv3, shape: 1, 1, 1, 1 - Estimated age divided by 100.
Name: prob, shape: 1, 2, 1, 1 - Softmax output across 2 type classes [0 - female, 1 - male].

Received output example:
age_conv3 = [0.349784911, 0.328657120, 0.373537451, 0.369158268] (4 values instead of one)
prob = [0.0271999519, 0.972800076, 0.0115807839, 0.988419175, 0.0321026519, 0.967897415, 0.0114557156, 0.988544285] (8 values instead of 2)

The question is, why do I receive such output? Maybe I use wrong output processing for StubLayer?

Thank you

@ermig1979
Copy link
Owner

Hi! I added this model to tests (see https://github.com/ermig1979/Synet/tree/master/data/inference_engine/test_016f).
The model is processed normally with expected output sizes: (1 1 1 1, 1 2 1 1).

However I found that this model can be resized to another input size (internal structure of this model allows to do this) and this leads to wrong output size. So I would check size of input. It must be (1 3 62 62 for NCHW) or (1 62 62 3 for NHWC). This model allows to change only batch size.

@edward9112
Copy link
Author

I double-checked, and it works as expected, thank you!

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