NVIDIA
NVIDIA
SSD v1.2 for TensorFlow
Resource
NVIDIA
NVIDIA
SSD v1.2 for TensorFlow

With a ResNet-50 backbone and a number of architectural modifications, this version provides better accuracy and performance.

Performance

Benchmarking

The following section shows how to run benchmarks measuring the model performance in training and inference modes.

Training performance benchmark

Training benchmark was run in various scenarios on V100 16G GPU. For each scenario, batch size was set to 32.

To benchmark training, run:

bash examples/SSD320_{PREC}_{NGPU}GPU_BENCHMARK.sh

Where the {NGPU} defines number of GPUs used in benchmark, and the {PREC} defines precision. The benchmark runs training with only 1200 steps and computes average training speed of last 300 steps.

Inference performance benchmark

Inference benchmark was run with various batch-sizes on V100 16G GPU. For inference we are using single GPU setting. Examples are taken from the validation dataset.

To benchmark inference, run:

bash examples/SSD320_FP{16,32}_inference.sh --batch_size <batch size> --checkpoint_dir <path to checkpoint>

Batch size for the inference benchmark is controlled by the --batch_size argument, while the checkpoint is provided to the script with the --checkpoint_dir argument.

The benchmark script provides extra arguments for extra control over the experiment. We were using default values for the extra arguments during the experiments. For more details about them, please run:

bash examples/SSD320_FP16_inference.sh --help

Results

The following sections provide details on how we achieved our performance and accuracy in training and inference.

Training accuracy results

Our results were obtained by running the ./examples/SSD320_FP{16,32}_{1,4,8}GPU.sh script in the TensorFlow-19.03-py3 NGC container on NVIDIA DGX-1 with 8x V100 16G GPUs. All the results are obtained with batch size set to 32.

Number of GPUsMixed precision mAPTraining time with mixed precisionFP32 mAPTraining time with FP32
10.2767h 17min0.27810h 20min
40.2772h 15min0.2752h 53min
80.2691h 19min0.2681h 37min

Here are example graphs of FP32 and FP16 training on 8 GPU configuration:

TrainingLoss

ValidationAccuracy

Training performance results

Our results were obtained by running:

python bash examples/SSD320_FP*GPU_BENCHMARK.sh

scripts in the TensorFlow-19.03-py3 NGC container on NVIDIA DGX-1 with V100 16G GPUs.

Number of GPUsBatch size per GPUMixed precision img/sFP32 img/sSpeed-up with mixed precisionMulti-gpu weak scaling with mixed precisionMulti-gpu weak scaling with FP32
132124.9787.871.421.001.00
432430.79330.351.393.453.76
832752.04569.011.326.026.48

To achieve same results, follow the Quick start guide outlined above.

Those results can be improved when XLA is used in conjunction with mixed precision, delivering up to 2x speedup over FP32 on a single GPU (~179 img/s). However XLA is still considered experimental.

Inference performance results

Our results were obtained by running the examples/SSD320_FP{16,32}_inference.sh script in the TensorFlow-19.03-py3 NGC container on NVIDIA DGX-1 with 1x V100 16G GPUs.

Batch sizeMixed precision img/sFP32 img/s
193.3797.29
2135.33134.04
4171.70163.38
8189.25174.47
16187.62175.42
32187.37175.07
64191.40177.75

To achieve same results, follow the Quick start guide outlined above.

NVIDIA uses cookies to improve your experience on our web site. We and our third-party partners also use cookies and other tools to collect and record information you provide as well as information about your interactions with our websites for performance improvement, analytics, and to assist in marketing efforts. By clicking "Accept All", you consent to our use of cookies and other tools as described in our Cookie Policy. You can manage your cookie settings by clicking on "Manage Settings." By continuing to use this site or by clicking one of the buttons below, you agree to our Terms of Service (which contains important waivers). Please see our Privacy Policy for more information on our privacy practices.