Exception has occurred: AttributeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'tuple' object has no attribute 'numpy'
File "/usr/local/lib/python3.8/dist-packages/yolov4/tf/__init__.py", line 123, in <listcomp>
c.numpy().astype(np.float32, copy=False) for c in candidates
File "/usr/local/lib/python3.8/dist-packages/yolov4/tf/__init__.py", line 122, in predict
candidates = [
File "/usr/local/lib/python3.8/dist-packages/yolov4/common/base_class.py", line 176, in inference
bboxes = self.predict(frame)
File "/mnt/hdNear/workspace/josef/input_size_project/yolov4_tf24/yolov4_model_test.py", line 17, in <module>
yolo.inference(media_path = "/mnt/hdNear/workspace/josef/input_size_project/yolov4_tf24/test/padded_vs_orig/832x832/DualAir_00133_r2_2_000231_003.png",
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/runpy.py", line 97, in _run_module_code
_run_code(code, mod_globals, init_globals,
File "/usr/lib/python3.8/runpy.py", line 265, in run_path
return _run_module_code(code, init_globals, run_name,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
the model returns array of tuples with tensors in them, and try to turn them to a numpy array. I would be happy for some help.
I'm trying to get prediction from preloaded weights from this repo, and get some inputs about the model.
I use yolov4-tiny-relu-tpu.cfg config & yolov4-tiny-relu.weights and v3 of this repo but while running this code:
im getting this error:
the model returns array of tuples with tensors in them, and try to turn them to a numpy array. I would be happy for some help.