Unclaimed project
Are you a maintainer of onnx-go? Claim this project to take control of your public changelog and roadmap.
Changelog
onnx-go gives the ability to import a pre-trained neural network within Go without being linked to a framework or library.
This is a pre-release able to run the emotion fer+ model. On top of that, it holds the premises of a new package to manipulate images and BCHW tensors (see internal/x).
The attachment is a simple tool that expects the emotion fer + model as input (model.onnx) and a picture encoded in gray/png and of size 64x64. (See the Makefile for options of ImageMagick to convert the picture to a suitable format).
You need to grab the model.onnx file from here
On MacOS you can install imagesnap and imagemagick and run macos_fun.sh.
Otherwise, simply download the Makefile and type make install to install everything and make analyze1.jpg to create a picture and analyze it.