ShannonAI / service-streamer

Boosting your Web Services of Deep Learning Applications.
Apache License 2.0
1.23k stars 187 forks source link

请问有遇到过ValueError: Layer sequential expects 1 inputs, but it received 64 input tensors 的问题吗? #79

Closed LCG22 closed 4 years ago

LCG22 commented 4 years ago

使用的是 tf2.1 的 keras 创建的模型,是在使用 Streamer 对模型进行封装后,使用 predict 方法时报的错。如果不使用 Stream而 进行封装,同样使用 predict 方法时却不会报错。请问代码需要怎么改,才能解决这个问题呢?

LCG22 commented 4 years ago

原来是输入格式要是 list 类型的