mkdir build
cd build
cmake ..
make
./tensorrt_test -h
From https://www.cityscapes-dataset.com/downloads/ download:
- leftImg8bit_trainvaltest.zip (11GB)
- gtFine_trainvaltest.zip (241MB)
Download and extract to accuracy-test/datasets/Cityscapes
cd accuracy-test
python trt_inference.py
cd model
nano swiftnet_to_onnx.py
# change pre-trained model path and input resolution (must be the same as in models/util.py)
python swiftnet_to_onnx.py
cd model
nano torch_timer_eval.py
# change pre-trained model path and input resolution (must be the same as in models/util.py)
python torch_timer_eval.py
wget http://elbereth.zemris.fer.hr/swiftnet/swiftnet_ss_cs.pt -P weights/