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
{{ message }}
This repository has been archived by the owner on Dec 7, 2022. It is now read-only.
# Make sure you downloaded one of pretrain model and locate at /weights folder, link: https://github.com/clovaai/CRAFT-pytorch#test-instruction-using-pretrained-model
export failed=0 # To check if cmd run completed
export CUDA_VISIBLE_DEVICES=0 # Set specific GPU for TensorRT engine optimized for, start from 0
# I. Convert pth model into (Torch JIT, ONNX, TensorRT)
cd converters/
python pth2onnx.py || export failed=1
python onnx2trt.py || export failed=1
cd ..
# Convert ONNX to TensorRT can be done by trtexec command from TensorRT: