coco数据集的处理
2016-07-21 09:07
1601 查看
ssd中readme.md提供了对Coco的处理
ssd/caffe/data/coco/
### Preparation
1. Download Images and Annotations from [MSCOCO](http://mscoco.org/dataset/#download). By default, we assume the data is stored in `$HOME/data/coco`
2. Get the coco code. We will call the directory that you cloned coco into `$COCO_ROOT`
```Shell
git clone https://github.com/weiliu89/coco.git
cd coco
git checkout dev
```
3. Build the coco code.
```Shell
cd PythonAPI
python setup.py build_ext --inplace
```
4. Split the annotation to many files per image and get the image size info.
```Shell
# Check scripts/batch_split_annotation.py and change settings accordingly.
python scripts/batch_split_annotation.py
# Create the minival2014_name_size.txt and test-dev2015_name_size.txt in $CAFFE_ROOT/data/coco
python scripts/batch_get_image_size.py
```
5. Create the LMDB file.
```Shell
cd $CAFFE_ROOT
# Create the minival.txt, testdev.txt, test.txt, train.txt in data/coco/
python data/coco/create_list.py
# You can modify the parameters in create_data.sh if needed.
# It will create lmdb files for minival, testdev, test, and train with encoded original image:
# - $HOME/data/coco/lmdb/coco_minival_lmdb
# - $HOME/data/coco/lmdb/coco_testdev_lmdb
# - $HOME/data/coco/lmdb/coco_test_lmdb
# - $HOME/data/coco/lmdb/coco_train_lmdb
# and make soft links at examples/coco/
./data/coco/create_data.sh
```
ssd/caffe/data/coco/
### Preparation
1. Download Images and Annotations from [MSCOCO](http://mscoco.org/dataset/#download). By default, we assume the data is stored in `$HOME/data/coco`
2. Get the coco code. We will call the directory that you cloned coco into `$COCO_ROOT`
```Shell
git clone https://github.com/weiliu89/coco.git
cd coco
git checkout dev
```
3. Build the coco code.
```Shell
cd PythonAPI
python setup.py build_ext --inplace
```
4. Split the annotation to many files per image and get the image size info.
```Shell
# Check scripts/batch_split_annotation.py and change settings accordingly.
python scripts/batch_split_annotation.py
# Create the minival2014_name_size.txt and test-dev2015_name_size.txt in $CAFFE_ROOT/data/coco
python scripts/batch_get_image_size.py
```
5. Create the LMDB file.
```Shell
cd $CAFFE_ROOT
# Create the minival.txt, testdev.txt, test.txt, train.txt in data/coco/
python data/coco/create_list.py
# You can modify the parameters in create_data.sh if needed.
# It will create lmdb files for minival, testdev, test, and train with encoded original image:
# - $HOME/data/coco/lmdb/coco_minival_lmdb
# - $HOME/data/coco/lmdb/coco_testdev_lmdb
# - $HOME/data/coco/lmdb/coco_test_lmdb
# - $HOME/data/coco/lmdb/coco_train_lmdb
# and make soft links at examples/coco/
./data/coco/create_data.sh
```
相关文章推荐
- 嵌入式开发第10天(高级议题,C语言结束)
- 关于Oracle的事务
- win64 Python下安装PIL出错解决
- html头文件中的 content = "IE=edge,chrome=1"
- 理论: STL(2): bitset
- 长度是怎样炼成的(一)
- 选择引擎渲染页面
- 打包报错,编译无错
- Codeforces - Educational Codeforces Round 14B - s-palindrome(模拟)
- Android 如何让EditText不自动获取焦点
- 简单背包问题——百炼01:Charm Bracelet
- Android
- Java内容回顾
- JAVA SE 面向对象笔记
- POJ 2366 Sacrament of the sum
- HDU 5723 Abandoned country
- 【linux c】指针与数组的区别_学习笔记_012
- String.format("%1$02d",var)其中%1$0nd是啥意思
- OpenGL ES像素着色器
- 【代码笔记】iOS-正在加载