Closed rakshith-rm closed 3 years ago
Could you send the error/output. This converter is not dynamic, you have to check errors in conversion steps.
Below is the following error that I got:
F:\torch2tflite>python converter.py --torch-model-path ./cpts/latest_net_G.pth --tf-lite-model-path ./converter/tf_lite_model.tflite --test-im-path ./converter/test_images/test.jpg --show-results --convert 2021-01-20 18:57:55.850158: W tensorflow/stream_executor/platform/default/dso_loader.cc:59] Could not load dynamic library 'cudart64_101.dll'; dlerror: cudart64_101.dll not found 2021-01-20 18:57:55.855156: 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. Showing result!
Traceback (most recent call last):
File "converter.py", line 58, in
I've put the .pth file under 'cpts' directory.
Thanks
hello @omerferhatt when i convert my model to tflite ,i get some issues like this---> (torch2tflite) root@mysafetrain-nb:/home/pytorch/torch2tflite/torch2tflite# python3 converter.py --torch-model-path best.pt --tf-lite-model-path best.tflite --test-im-path 000008.jpg --show-results --convert Showing result!
Traceback (most recent call last):
File "converter.py", line 58, in
ValueError: Could not open './converter/tf_lite_model.tflite'.
I've loaded my .pt file and a sample test image....but looks like the conversion is not working. Can you rectify this?
Thanks