Giter VIP home page Giter VIP logo

ssd_objectection's Introduction

ssd_objectection

ssd 训练自己的数据

1.标签文件格式转换, 运行函数: process.py ->convert_xml2txt('data/my_data/Annotations')

把xml标签文件转换成txt文件:比如把2013.xml->2013.txt,txt内容为:

物体索引1 minx miny maxx maxy
物体索引2 minx miny maxx maxy
  1. 训练、测试文件名字列表生成train.txt、test.txt以及测试数据的信息文件test_name_size.txt,运行函数:
#参数:txt标签文件存放目录,图片存放目录,生成的列表文件输出目录
process.py->create_list('data/my_data/label_txt','data/my_data/images','data/my_data/')

train.txt 和test.txt,内容格式为:

data/my_data/images/hlg_00000032964.jpg data/my_data/label_txt/hlg_00000032964.txt
data/my_data/images/hlg_00000027797.jpg data/my_data/label_txt/hlg_00000027797.txt
data/my_data/images/hlg_00000028611.jpg data/my_data/label_txt/hlg_00000028611.txt
data/my_data/images/hlg_00000002065.jpg data/my_data/label_txt/hlg_00000002065.txt

test_name_size.txt内容格式为:

图片文件名(不包含扩展名)	   图片宽  图片高
  1. 根据识别物体任务,修改:labelmap_dataset.prototxt文件

  2. 生成lmdb文件:修改create_data.sh相关路径,然后运行生成lmdb文件

  3. 修改 train_ssdi.py文件的相关参数、文件路径等

ssd_objectection's People

Contributors

hjimce avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.