Sorry for this question, I’ve looked around the forum and wasn’t able to fix this issue yet.
I’ve trained a retinanet model via the TAO framework and tested it’s inferencing & it was able to produce a satisfactory result
However, when I attempted to export the .tlt model & further convert it to a tensorRT engine & tested inferencing on the tensorRT engine the results are empty.
Potential problems that I’m contemplating:
- What is the actual image preprocessing before feeding it to the network? Where can I find it?
- Maybe I’m not converting the model correctly?
Here’s the command I used to export TLT to ETLT (On workstation with RTX2070 super):
export DOCKER_REGISTRY="nvcr.io"
export DOCKER_NAME="nvidia/tao/tao-toolkit"
export DOCKER_TAG="4.0.0-tf1.15.5"
export DOCKER_CONTAINER=$DOCKER_REGISTRY/$DOCKER_NAME:$DOCKER_TAG
export KEY="nvidia_tlt"
export EXPERIMENT_NAME="mobilenet_v2_qat_2"
export SPEC_FILE="retinanet_train_mobilenet_v2.txt"
export EXPORT_EPOCH="022"
docker run -it --rm --gpus all --ipc=host --ulimit memlock=-1 --ulimit stack=67108864 -v /home/developer/apps/tao-training/workspace:/workspace \
$DOCKER_CONTAINER \
retinanet export -o /workspace/retinanet/models/$EXPERIMENT_NAME/export/retinanet_mobilenet_v2_epoch_$EXPORT_EPOCH.etlt \
-e /workspace/retinanet/specs/$SPEC_FILE \
-m /workspace/retinanet/models/$EXPERIMENT_NAME/weights/retinanet_mobilenet_v2_epoch_$EXPORT_EPOCH.tlt \
-k $KEY \
--data_type int8 \
--cal_cache_file /workspace/retinanet/models/$EXPERIMENT_NAME/export/cal.bin \
--cal_json_file /workspace/retinanet/models/$EXPERIMENT_NAME/export/cal.json
Here’s the command I used to convert ETLT to tensorRT engine (Run On Orin AGX using nvcr.io/nvidia/l4t-ml:r35.2.1-py3 as base image) :
./tao-converter -k $KEY \
-d 3,544,736 \
-o NMS \
-m 1 \
-t int8 \
-c /workspaces/convert_to_trt/etlt_models/sorter_object_detection/retinanet/tao_etlt_retinanet_mobilenet_v2_int8/cal.bin \
-e /workspaces/convert_to_trt/etlt_models/sorter_object_detection/retinanet/tao_etlt_retinanet_mobilenet_v2_int8/retinanet_mobilenet_v2_epoch_022.engine \
/workspaces/convert_to_trt/etlt_models/sorter_object_detection/retinanet/tao_etlt_retinanet_mobilenet_v2_int8/retinanet_mobilenet_v2_epoch_022.etlt
retinanet_train_mobilenet_v2.txt (1.7 KB)
retinanet_mobilenet_v2_epoch_022.tlt (38.2 MB)
retinanet_mobilenet_v2_epoch_022.etlt (20.8 MB)
cal.bin (2.3 KB)
retinanet_mobilenet_v2_epoch_022.engine (13.6 MB)