You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在调用stream.predict的时候我已经将数据处理成ndarray传进去了。
然后在运行的时候提示TypeError: X is not of a supported input data type.X must be in a supported mtype format for Panel, found <class 'list'>Use datatypes.check_is_mtype to check conformance with specifications.
我有一个推理函数如下:
其中model.predict接收的参数是一个
ndarry
,下面是使用
ThreadedStreamer
之后的代码:在调用
stream.predict
的时候我已经将数据处理成ndarray
传进去了。然后在运行的时候提示
TypeError: X is not of a supported input data type.X must be in a supported mtype format for Panel, found <class 'list'>Use datatypes.check_is_mtype to check conformance with specifications.
我查看源码之后发现问题在下图将队列中取到的数据放到了一个
list
中然后传递给predict
函数请问是我使用
ThreadedStreamer
方法不对,还是predict
函数不支持ndarray
的参数。The text was updated successfully, but these errors were encountered: