Please provide the following information when requesting support.
• Network Type (Mask_rcnn)
• TLT Version: 5.0.0-deploy
• How to reproduce the issue ?
I am trying to run inference on a MaskRCNN task and extract the COCO annotations in txt/json/whatever format.
In the documentation the available flags contain --out_label_path
to specify the output path, but this tag is not available in our implementation:
usage: mask_rcnn inference [-h] [--num_processes NUM_PROCESSES] [--gpus GPUS] [--gpu_index GPU_INDEX [GPU_INDEX ...]] [--use_amp] [--log_file LOG_FILE] -m MODEL_PATH -i IMAGE_DIR [-k KEY]
[-c CLASS_MAP] [-t THRESHOLD] [--include_mask] -e EXPERIMENT_SPEC [-r RESULTS_DIR]
{train,prune,inference_trt,inference,export,evaluate,dataset_convert} ...
optional arguments:
-h, --help show this help message and exit
--num_processes NUM_PROCESSES, -np NUM_PROCESSES
The number of horovod child processes to be spawned. Default is -1(equal to --gpus).
--gpus GPUS The number of GPUs to be used for the job.
--gpu_index GPU_INDEX [GPU_INDEX ...]
The indices of the GPU's to be used.
--use_amp Flag to enable Auto Mixed Precision.
--log_file LOG_FILE Path to the output log file.
-m MODEL_PATH, --model_path MODEL_PATH
Path to a MaskRCNN model.
-i IMAGE_DIR, --image_dir IMAGE_DIR
Path to the input image directory.
-k KEY, --key KEY Encryption key.
-c CLASS_MAP, --class_map CLASS_MAP
Path to the label file.
-t THRESHOLD, --threshold THRESHOLD
Bbox confidence threshold.
--include_mask Whether to draw masks.
-e EXPERIMENT_SPEC, --experiment_spec EXPERIMENT_SPEC
Path to spec file. Absolute path or relative to working directory. If not specified, default spec from spec_loader.py is used.
-r RESULTS_DIR, --results_dir RESULTS_DIR
Output directory where the status log is saved.
I checked the versions and TAO is at version 5.0.0. I am using the exact command as specified in the Getting Started notebook:
tao model mask_rcnn inference -i $DATA_DOWNLOAD_DIR/infer_samples \
-e $SPECS_DIR/maskrcnn_retrain_resnet50.txt \
-m $USER_EXPERIMENT_DIR/experiment_dir_retrain/model.epoch-$NUM_EPOCH.tlt \
-c $SPECS_DIR/coco_labels.txt \
-r $INFERENCE_OUTPUT_DATA_DIR \
-t 0.5 \
--include_mask
The images are exported correctly, but that is not a usable format for our purposes.
Any help is appreciated.
Best,
PA