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

fatal error: Cannot create ConcatV2. Missing or invalid attribute axis. #81

Closed
JeremyGozlan opened this issue Nov 1, 2017 · 3 comments · Fixed by #88
Closed

fatal error: Cannot create ConcatV2. Missing or invalid attribute axis. #81

JeremyGozlan opened this issue Nov 1, 2017 · 3 comments · Fixed by #88

Comments

@JeremyGozlan
Copy link

JeremyGozlan commented Nov 1, 2017

Hello, just update to your new version, seems to work but i got this error when loading my pb model.

guard let axisInt32 = axisNode.nodeDef.attr["value"]?.tensor.intVal.first, let axis = LayerSizeAxis.fromTF(index: Int(axisInt32)) else {
fatalError("Cannot create (Constants.Ops.Concat). Missing or invalid attribute axis.")
}

here axistInt32 = 3 , but cannot create concatv2 when axis = LayerSizeAxis.fromTF(index: Int(axisInt32))
Any idea?
I am basically trying to convert my pb model which is one derived from https://github.com/Joker316701882/Salience-Object-Detection
and then froze.
Also some warning
"Unknown input: pool4_1:1"
"Unknown input: pool4:1"
"Unknown input: pool3:1"
"Unknown input: pool2:1"
"Unknown input: pool1:1"
thanks a lot

@JeremyGozlan
Copy link
Author

my input tensor ( 1,320,320,3)
output (1,320,320,1)
any idea on how I can tweak bender a bit to make it work?

@JeremyGozlan
Copy link
Author

Is there a way maybe in tensor flow to reshape input/output tensor to 3d from 4d ?

@bryant1410
Copy link
Member

Can you try setting the first dimension as None in python? And see if that works.

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

Successfully merging a pull request may close this issue.

2 participants