You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am converting a .weight model, first to .h5 and then to .pb. Both are successful and can be verified by the validate_yolo.py
(In addition, can this repo convert .h5 to a TF savedmodel? )
The conversion to .onnx is also successful, but model cannot be verified with validate_yolo.py. The error message is as following:
Thanks in advance!!
The device support i8sdot:0, support fp16:0, support i8mm: 0
2023-11-27 21:24:16.453009: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2023-11-27 21:24:16.453046: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-11-27 21:24:19.901064: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/dist-packages/cv2/../../lib64:
2023-11-27 21:24:19.901113: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2023-11-27 21:24:19.901152: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (art-ipc427d): /proc/driver/nvidia/version does not exist
(416, 416)
2023-11-27 21:24:20.029914655 [W:onnxruntime:Default, upsamplebase.h:101 UpsampleBase] tf_half_pixel_for_nn is deprecated since opset 13, yet this opset 13 model uses the deprecated attribute
NCHW input layout
Traceback (most recent call last):
File "./tools/evaluation/validate_yolo.py", line 520, in
main()
File "./tools/evaluation/validate_yolo.py", line 511, in main
validate_yolo_model_onnx(model, image_file, anchors, class_names, args.elim_grid_sense, args.v5_decode, args.loop_count, args.output_path)
File "./tools/evaluation/validate_yolo.py", line 335, in validate_yolo_model_onnx
raise ValueError('invalid output layout or shape')
ValueError: invalid output layout or shape
The output of print(output_tensors[0],output_tensors[1]):
NodeArg(name='conv2d_9', type='tensor(float)', shape=['unk__308', 30, 0, 0]) NodeArg(name='conv2d_12', type='tensor(float)', shape=['unk__311', 30, 0, 0])
The text was updated successfully, but these errors were encountered:
I am converting a .weight model, first to .h5 and then to .pb. Both are successful and can be verified by the validate_yolo.py
(In addition, can this repo convert .h5 to a TF savedmodel? )
The conversion to .onnx is also successful, but model cannot be verified with validate_yolo.py. The error message is as following:
Thanks in advance!!
The device support i8sdot:0, support fp16:0, support i8mm: 0
2023-11-27 21:24:16.453009: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2023-11-27 21:24:16.453046: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
2023-11-27 21:24:19.901064: W tensorflow/stream_executor/platform/default/dso_loader.cc:64] Could not load dynamic library 'libcuda.so.1'; dlerror: libcuda.so.1: cannot open shared object file: No such file or directory; LD_LIBRARY_PATH: /usr/local/lib/python3.8/dist-packages/cv2/../../lib64:
2023-11-27 21:24:19.901113: W tensorflow/stream_executor/cuda/cuda_driver.cc:326] failed call to cuInit: UNKNOWN ERROR (303)
2023-11-27 21:24:19.901152: I tensorflow/stream_executor/cuda/cuda_diagnostics.cc:156] kernel driver does not appear to be running on this host (art-ipc427d): /proc/driver/nvidia/version does not exist
(416, 416)
2023-11-27 21:24:20.029914655 [W:onnxruntime:Default, upsamplebase.h:101 UpsampleBase]
tf_half_pixel_for_nn
is deprecated since opset 13, yet this opset 13 model uses the deprecated attributeNCHW input layout
Traceback (most recent call last):
File "./tools/evaluation/validate_yolo.py", line 520, in
main()
File "./tools/evaluation/validate_yolo.py", line 511, in main
validate_yolo_model_onnx(model, image_file, anchors, class_names, args.elim_grid_sense, args.v5_decode, args.loop_count, args.output_path)
File "./tools/evaluation/validate_yolo.py", line 335, in validate_yolo_model_onnx
raise ValueError('invalid output layout or shape')
ValueError: invalid output layout or shape
The output of print(output_tensors[0],output_tensors[1]):
NodeArg(name='conv2d_9', type='tensor(float)', shape=['unk__308', 30, 0, 0]) NodeArg(name='conv2d_12', type='tensor(float)', shape=['unk__311', 30, 0, 0])
The text was updated successfully, but these errors were encountered: