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

model_test 跑Unet模型出现concat op InferShape错误 #2724

Closed
hcj5206 opened this issue Jan 4, 2020 · 6 comments
Closed

model_test 跑Unet模型出现concat op InferShape错误 #2724

hcj5206 opened this issue Jan 4, 2020 · 6 comments

Comments

@hcj5206
Copy link

hcj5206 commented Jan 4, 2020

model path:path
报错语句

[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] out_dims[j] == input_dims[i][j] check failed!
[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] 246 != 120
@hcj5206
Copy link
Author

hcj5206 commented Jan 4, 2020

该模型是tf生成的,然后用x2paddle转化为__model__,在tf上可以跑通。测试环境为 paddle-lite andriod 845 ,执行语句为
./test_model_bin --input_shape="1,3,256,256" --warmup=5 --repeats=50 --threads=1 --model_dir=./inference_model

@jiweibo
Copy link
Collaborator

jiweibo commented Jan 4, 2020

model path:path
报错语句

[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] out_dims[j] == input_dims[i][j] check failed!
[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] 246 != 120

请问下能提供模型和参数文件吗,只有模型文件跑不起来

@hcj5206
Copy link
Author

hcj5206 commented Jan 4, 2020

model path:path
报错语句

[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] out_dims[j] == input_dims[i][j] check failed!
[I  1/ 4  0:28: 2.711 /Paddle-Lite/lite/operators/concat_op.cc InferShape:44] 246 != 120

请问下能提供模型和参数文件吗,只有模型文件跑不起来

好的,已打包 path

@jiweibo
Copy link
Collaborator

jiweibo commented Jan 5, 2020

已定位问题,目前conv_transpose kernel没有支持output_size参数,导致输出shape为(1,1),后续concat的时候报错,预计下周支持这个参数。

@hcj5206
Copy link
Author

hcj5206 commented Jan 5, 2020

已定位问题,目前conv_transpose kernel没有支持output_size参数,导致输出shape为(1,1),后续concat的时候报错,预计下周支持这个参数。

好的,劳驾了 。 还有就是我测了一下 https://paddlepaddle.github.io/Paddle-Lite/v2.2.0/benchmark/ 提供的 shufflent_v2 也是有concat op ,也是跑不了的。供参考

@jiweibo
Copy link
Collaborator

jiweibo commented Jan 10, 2020

已定位问题,目前conv_transpose kernel没有支持output_size参数,导致输出shape为(1,1),后续concat的时候报错,预计下周支持这个参数。

好的,劳驾了 。 还有就是我测了一下 https://paddlepaddle.github.io/Paddle-Lite/v2.2.0/benchmark/ 提供的 shufflent_v2 也是有concat op ,也是跑不了的。供参考

测试了一下,跑shuffle_net没有问题呀。

conv_transpose的output_size pr合入后支持

@hcj5206 hcj5206 closed this as completed Jan 10, 2020
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