2019-04-16 09:47:58 +03:00
2019-04-16 09:47:00 +03:00
2019-04-16 09:47:58 +03:00
2018-09-20 14:04:40 +03:00
2018-09-20 14:04:40 +03:00
2018-09-20 14:04:40 +03:00
2018-09-20 14:04:40 +03:00
2019-04-16 09:47:58 +03:00
2018-06-05 03:05:11 +08:00
2018-09-20 14:04:40 +03:00
2018-06-05 03:05:11 +08:00
2018-09-20 14:04:40 +03:00
2018-09-20 14:04:40 +03:00
2018-09-20 14:07:58 +03:00
2018-09-20 14:04:40 +03:00
2019-04-16 09:47:58 +03:00

FORK of go-darknet https://github.com/gyonluks/go-darknet

go-darknet: Go bindings for Darknet

GoDoc

go-darknet is a Go package, which uses Cgo to enable Go applications to use YOLO in Darknet.

License

go-darknet follows Darknet's license.

Requirements

For proper codebase please use fork of darknet There are instructions for defining GPU/CPU + function for loading image from memory.

In order to use go-darknet, libdarknet.so should be available in one of the following locations:

  • /usr/lib
  • /usr/local/lib

Also, darknet.h should be available in one of the following locations:

  • /usr/include
  • /usr/local/include

Install

go get github.com/LdDl/go-darknet

The package name is darknet.

Use

Example Go code/program is provided in the example directory. Please refer to the code on how to use this Go package.

Building and running the example program is easy:

cd $GOPATH/github.com/LdDl/go-darknet/example
#download dataset (coco.names, coco.data, weights and configuration file)
./download_data.sh
#build program
go build main.go
#run it
./main -configFile yolov3-320.cfg --dataConfigFile coco.data -imageFile sample.jpg -weightsFile yolov3-320.weights

Documentation

See go-darknet's API documentation at GoDoc.

Languages
Go 65.5%
Makefile 14.8%
C 12%
Shell 7.7%