EdjeElectronics / TensorFlow-Object-Detection-API-Tutorial-Train-Multiple-Objects-Windows-10

How to train a TensorFlow Object Detection Classifier for multiple object detection on Windows
Apache License 2.0
2.93k stars 1.3k forks source link

NotImplementedError: Cannot convert a symbolic Tensor (cond_2/strided_slice:0) to a numpy array. #584

Open songkranandta opened 3 years ago

songkranandta commented 3 years ago

NotImplementedError: in converted code:

C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\object_detection\data_decoders\tf_example_decoder.py:571 default_groundtruth_weights  *
    return tf.ones(
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\util\deprecation.py:507 new_func
    return func(*args, **kwargs)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\ops\array_ops.py:2560 ones
    output = _constant_if_small(one, shape, dtype, name)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\ops\array_ops.py:2295 _constant_if_small
    if np.prod(shape) < 1000:
<__array_function__ internals>:6 prod

C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\numpy\core\fromnumeric.py:3052 prod
    keepdims=keepdims, initial=initial, where=where)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\numpy\core\fromnumeric.py:86 _wrapreduction
    return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
C:\Users\Admin\anaconda3\envs\tensorflow_gpu_tar\lib\site-packages\tensorflow_core\python\framework\ops.py:736 __array__
    " array.".format(self.name))

NotImplementedError: Cannot convert a symbolic Tensor (cond_2/strided_slice:0) to a numpy array.