hunglc007 / tensorflow-yolov4-tflite

YOLOv4, YOLOv4-tiny, YOLOv3, YOLOv3-tiny Implemented in Tensorflow 2.0, Android. Convert YOLO v4 .weights tensorflow, tensorrt and tflite
https://github.com/hunglc007/tensorflow-yolov4-tflite
MIT License
2.23k stars 1.24k forks source link

NotImplementedError: Cannot convert a symbolic Tensor (ExpandDims:0) to a numpy array. #80

Open adarsh0906 opened 4 years ago

adarsh0906 commented 4 years ago

I get this error when i run the code

uysalmustafa commented 4 years ago

I've same error. Please update the post when you fix the problem

varad-more commented 4 years ago

Even I've same error. Please update if your problem was fixed.

Luckman333 commented 4 years ago

Same Problem when runinng with a custom trained Darknet network: python detect.py --weights .\yolo-obj_last.weights --framework tf --size 608 --image .\img.png

File "detect.py", line 90, in main pred_bbox = utils.postprocess_bbbox(pred_bbox, ANCHORS, STRIDES, XYSCALE) File "C:\Program Files (x86)\IntelSWTools\openvino\deployment_tools\model_optimizer\tensorflow-yolov4-tflite\core\utils.py", line 308, in postprocess_bbbox xy_grid = np.tile(tf.expand_dims(xy_grid, axis=0), [1, 1, 1, 3, 1]) File "C:\Users\tlagemann\.conda\envs\opencv\lib\site-packages\numpy\lib\shape_base.py", line 1233, in tile c = _nx.array(A, copy=False, subok=True, ndmin=d) File "C:\Users\***\AppData\Roaming\Python\Python37\site-packages\tensorflow_core\python\framework\ops.py", line 736, in __array__ " array.".format(self.name))