1 Star 0 Fork 1

Allen123Allen / Objectdetectionapi

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Objectdetectionapi --> pigface train and detection

此练习项目是为了猪脸识别,进行的构建数据集,以及模型训练。 因文件数量很多,故按目录压缩了下。使用方法如下。

本项目是在tf的ObjectDetectionAPI基础上进行了修改。能独立运行,不依赖tf的models。

1、把所有压缩包解压后拷贝到统一的object_detection目录。 注意,Annotations.zip,ImageSets,JPEGImages.7z.001-JPEGImages.7z.001 需要放到object_detection目录的子目录pigfaces\VOC2007下。

2、需要从tf官网下载faster_rcnn_resnet101_voc07的预训练模型文件。 解压后放到model目录下。

3、为生成tfrecord文件,再运行如下命令: cd 到xxx\object_detection目录下。 python create_pascal_tf_record.py --data_dir=xxxx\object_detection\pigfaces --year=VOC2007 --set=train --output_path=data\pig_train.record

注意:--data_dir的是绝对路径名
      --output_path是相对目录,且要带有文件名 XXXX.record

4、之后为开始训练,运行如下命令: cd 到xxx\objectdetection\object_detection目录下。 python train.py --train_dir=data --pipeline_config_path=models\faster_rcnn_resnet101_voc07.config

空文件

简介

pigface train and detection 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/allen123allen/Objectdetectionapi.git
git@gitee.com:allen123allen/Objectdetectionapi.git
allen123allen
Objectdetectionapi
Objectdetectionapi
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891