blackrez / gofaces

A sample project to run a tiny yolo v2 with face detection in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gofaces

This repository is an implementation of this article.

It is a toy to run face detection on a picture with a neural network.

The neural network is based on Tiny YOLO v2 and is encoded in the onnx format. It decocded with onnx-go and executed by Gorgonia.

Installation an usage

Requirements

  • Go with modules support, 1.12+ recommended.
  • Git LFS. It's needed in order to get the file model.onnx when cloning the repo. If you don’t have this, running will fail with an error: proto: can’t skip unknown wire type 6

Usage

git clone https://github.com/owulveryck/gofaces
cd gofaces
git lfs install
git lfs checkout model.onnx
cd cmd
go run main.go -h

About

A sample project to run a tiny yolo v2 with face detection in Go

License:Apache License 2.0


Languages

Language:Go 100.0%