File "camera.py", line 324, in
yolo = YoloV3()
File "camera.py", line 310, in YoloV3
name='yolo_boxes_0')(output_0)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\keras\engine\base_layer.py", line 922, in call
outputs = call_fn(cast_inputs, *args, kwargs)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\keras\layers\core.py", line 888, in call
result = self.function(inputs, kwargs)
File "camera.py", line 309, in
boxes_0 = Lambda(lambda x: yolo_boxes(x, anchors[masks[0]], classes),
File "camera.py", line 253, in yolo_boxes
grid = tf.meshgrid(tf.range(grid_size), tf.range(grid_size))
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 3391, in meshgrid
mult_fact = ones(shapes, output_dtype)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 2967, in ones
output = _constant_if_small(one, shape, dtype, name)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 2662, in _constant_if_small
if np.prod(shape) < 1000:
File "<__array_function__ internals>", line 6, in prod
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\numpy\core\fromnumeric.py", line 3052, in prod
keepdims=keepdims, initial=initial, where=where)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\framework\ops.py", line 749, in array
" array.".format(self.name))
NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy array.
I am getting the error in camera.py code as
File "camera.py", line 324, in
yolo = YoloV3()
File "camera.py", line 310, in YoloV3
name='yolo_boxes_0')(output_0)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\keras\engine\base_layer.py", line 922, in call
outputs = call_fn(cast_inputs, *args, kwargs)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\keras\layers\core.py", line 888, in call
result = self.function(inputs, kwargs)
File "camera.py", line 309, in
boxes_0 = Lambda(lambda x: yolo_boxes(x, anchors[masks[0]], classes),
File "camera.py", line 253, in yolo_boxes
grid = tf.meshgrid(tf.range(grid_size), tf.range(grid_size))
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 3391, in meshgrid
mult_fact = ones(shapes, output_dtype)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 2967, in ones
output = _constant_if_small(one, shape, dtype, name)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\ops\array_ops.py", line 2662, in _constant_if_small
if np.prod(shape) < 1000:
File "<__array_function__ internals>", line 6, in prod
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\numpy\core\fromnumeric.py", line 3052, in prod
keepdims=keepdims, initial=initial, where=where)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\numpy\core\fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
File "C:\Users\Admin\anaconda3\envs\env_swap\lib\site-packages\tensorflow\python\framework\ops.py", line 749, in array
" array.".format(self.name))
NotImplementedError: Cannot convert a symbolic Tensor (yolo_boxes_0/meshgrid/Size_1:0) to a numpy array.
Please help