Plugin/Application/Pipeline Name

A brief description of your plugin/application/pipeline goes here.

Table of Contents

Introduction

Apply softmax on a 2D vector. Reshape to 2D by reshaping to (data_len, num_classs) and apply softmax, reshape to 1D back

out_sz = data_len * num_classes * 4 (float size)

Features

No specific features are supported

Getting Started

To build the plugin use:

source /opt/poky/4.0.10/environment-setup-cortexa65-poky-linux
mkdir build && cd build && cmake .. && make

Prerequisites

  • Yocto SDK installed

Installation

scp libgstsimaaisoftmax2d.so sima@<IP address of DaVinci board>:/data/my_pipeline/libs

Usage

GST_DEBUG=3 gst-launch-1.0 simaaisrc location=<input_file> delay=1000 ! simaaisoftmax2d config=config.json ! fakesink

Configuration

{
    "version" : 0.1,
    "node_name" : "softmax2d",
    "simaai__params" : {
      "params" : 3,
      "cpu" : 0,
      "next_cpu" : 0,
      "out_sz" : 36800,
      "no_of_outbuf" : 5,
      "data_len" : 100,
      "num_classes" : 92,
      "debug" : 0,
      "dump_data" : 0
    }
  }

Contributing

Feel free to submit your changes: https://bitbucket.org/sima-ai/gst-simaai-plugins-base/src/master/gst/softmax2d/

License

Acknowledgments