8 Star 28 Fork 5

liu / darknetlib

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

DarknetLib

(中文/EN)

目录

介绍

Darknetlib 是 darknet 的 C API 库,主要为 LC-Finder 提供目标检测功能,相关代码可参考它的 src/lib/detector.c 文件。

特性

  • 支持简单的异常处理
  • 重新定义了接口,接口命名风格参考自 LeveDB/c.h
  • 适合作为动态库来使用

使用

在 Windows 中使用

使用 lcpkg 安装:

lcpkg install github.com/lc-soft/darknetlib

这种方式安装的是纯 CPU 运算的版本,如果你需要带 GPU 加速的版本,请前往发行版页面手动下载。

如果你想手动从源码构建的话:

  1. 下载安装 CUDA
  2. 下载 cuDNN 并解压到 3rdparty 目录
  3. 使用 Visual Studio 打开 build/darknet.sln
  4. 设置配置为 Releasex64
  5. 构建 darknet_gpu 和 test 项目
  6. 下载 yolov3-tiny.weights 文件至 test 目录
  7. 在 Visual Studio 中按 F5 键运行测试程序

在 Linux 中使用

git clone https://github.com/lc-soft/darknetlib.git
git submodule init
git submodule update
make
cd test
make

计划

  • darknet_detector_train() 能够正常训练识别器。
  • 规范化输出的日志格式。
  • 移除命令行交互代码,例如:getchar()
  • 移除奇怪的 system() 调用,例如:system("echo ...")
  • 重构 darknet,让它更适合作为函数库使用,而不是命令行程序。(极低优先级)

许可

代码基于 MIT 许可协议 发布。

MIT License Copyright (c) 2018 Liu Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Darknet 神经网络框架的 C API 库 展开 收起
C 等 2 种语言
MIT
取消

发行版 (2)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
C
1
https://gitee.com/lc-soft/darknetlib.git
git@gitee.com:lc-soft/darknetlib.git
lc-soft
darknetlib
darknetlib
master

搜索帮助