TypeError:int()参数必须是tensorflow中的字符串

时间:2018-10-03 11:15:38

标签: python numpy tensorflow object-detection

我已经训练了一个模型并生成了其推理图。当我尝试在单张图像上对其进行测试时,出现此错误

> Traceback (most recent call last):   File
> "C:\tensorflow1\models\research\object_detection\Object_detection_image.py",
> line 98, in <module>
>     feed_dict={image_tensor: image_expanded})   File "C:\Users\Hamada Fathy\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py",
> line 877, in run
>     run_metadata_ptr)   File "C:\Users\Hamada Fathy\Anaconda3\envs\tensorflow1\lib\site-packages\tensorflow\python\client\session.py",
> line 1069, in _run
>     np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)   File "C:\Users\Hamada
> Fathy\Anaconda3\envs\tensorflow1\lib\site-packages\numpy\core\numeric.py",
> line 492, in asarray
>     return array(a, dtype, copy=False, order=order) TypeError: int() argument must be a string, a bytes-like object or a number, not
> 'NoneType'

0 个答案:

没有答案