rocal_dataloader_tf application#

This application demonstrates a basic usage of rocAL’s C API to load TfRecords from the disk and modify them in different possible ways and displays the output images.

Build Instructions#

Pre-requisites#

  • Ubuntu 16.04/18.04 Linux

  • rocAL library (Part of the MIVisionX toolkit)

  • OpenCV 3.1 or higher

  • Google protobuf 3.11.1 or higher

  • ROCm Performance Primitives (RPP)

build#

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/rocm/lib
mkdir build
cd build
cmake ../
make

running the application#

rocal_dataloader <path-to-TFRecord> <proc_dev> <decode_width> <decode_height> <batch_size> <grayscale/rgb> <dispay_on_or_off>