-
Notifications
You must be signed in to change notification settings - Fork 565
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
TypeError: data must be either a numpy array or pandas DataFrame if pandas is installed; got dict #23
Comments
你能把错误贴完全一点吗?感觉你是不是tensorflow版本没有安装对啊? |
不好意思 这是完整的错误讯息 2022-05-11 18:02:31.429282: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'cudart64_110.dll'; dlerror: cudart64_110.dll not found WARNING:tensorflow:From c:\mathAI-master\source_code\main.py:47: The name tf.estimator.inputs.pandas_input_fn is deprecated. Please use tf.compat.v1.estimator.inputs.pandas_input_fn instead. <generator object Estimator.predict at 0x0000013DD80A4EB0> |
环境都已经建好
因为没有您说的opencv版本号
所以用pip install opencv-python==3.4.17.63下载
但在run main.py时出现以下的错误
TypeError: data must be either a numpy array or pandas DataFrame if pandas is installed; got dict
错误是发生在main.py的
for i,p in enumerate(predictions):
estimator.py的
features, input_hooks = self._get_features_from_input_fn(input_fn, ModeKeys.PREDICT)
The text was updated successfully, but these errors were encountered: