yolov3_mobilenet_caffe-master-訓練-只是做個記錄,
2021-04-09 21:29
标签:label roo nbsp cli cot 拷贝 tool $2 spl shao@zheng:~/ cp -r cj-sc cj_VOC 拷贝一份数据集到cj_VOC yolov3_mobilenet_caffe-master-訓練-只是做個記錄, 标签:label roo nbsp cli cot 拷贝 tool $2 spl 原文地址:https://www.cnblogs.com/zhengwenshao/p/12440763.html
shao@zheng:~/cd cj_VOC
shao@zheng:~/mkdir JPEGImages
shao@zheng:~/mv *.jpg JPEGImages 将jpg文件拷到JPEGImages中
shao@zheng:~/mkdir Annotations
shao@zheng:~/mv *.xml Annotations 将xml文件拷到JPEGImages中
shao@zheng:~/mkdir ImageSets
shao@zheng:~/cd ImageSets
shao@zheng:~/cj_VOC/ImageStes$mkdir Main
clear 清屏
shao@zheng:~/cj_VOC/ImageStes/Main$ ls ../Main/Annotations/*.xml >all.txt
shao@zheng:~/cj_VOC/ImageStes/Main$ ls ../../Annotations/*xml > all.txt 将xml的名字写到all.txt中
shao@zheng:~/cj_VOC/ImageStes/Main$ ls ../../Annotations/* > all.txt 将xml的名字写到all.txt中
shao@zheng:~/cj_VOC/ImageStes/Main$ sudo apt install zsh 安装zsh
shao@zheng:~/cj_VOC/ImageStes/Main$zsh
shao@zheng:~/cj_VOC/ImageStes/Main$2
shao@zheng:~/cj_VOC/ImageStes/Main$ %cat all.txt
sudo pip3 install alfred-py
sudo pip3 install matplotlib==2.1.0
sudo pip3 install pycocotools
sudo pip3 install cython
sudo apt install python3-tk
sudo pip3 install -U scikit-image==0.10.0
sudo pip3 install -U numpy
sudo pip3 install matplotlib==3.0
sudo pip3 install regex
shao@zheng:~/cj_VOC$ alfred data vocview -i JPEGImages/ -l Annotations/
% sed ‘s/\.xml$//‘ all.txt > all_names.txt 生成all_names.txt名称
% alfred cab split -f all_names.txt -r 0.8,0.1,0.1 -n train,val,test
shao@zheng:~/moca_furnace-master/data$ cp -r voclike_hands voclike_you
shao@zheng:~/moca_furnace-master/data$ zsh
% cd voclike_you
% python3 create_list.py -h
% python3 create_list.py ~/cj_VOC #生成txt文件
% vim create_data_normal.sh 改路徑
origin_data_root_dir="~/cj_VOC"
dataset_name="cj_you"
% vim labelmap_hands.prototxt 改類名
shao@zheng:~/moca_furnace-master/data/voclike_you$ sudo pip3 install protobuf
shao@zheng:~/moca_furnace-master/data/voclike_you$ mkdir -p ~/cj_VOC/lmdb
shao@zheng:~/moca_furnace-master/data/voclike_you$ ls ~/cj_VOC
shao@zheng:~/moca_furnace-master/data/voclike_you$ zsh
% pwd
% vim create_data_normal.sh
origin_data_root_dir="/home/shao/cj_VOC"
% ./create_data_normal.sh
zheng@shao:~/yolov3_mobilenet_caffe-master$ nautilus . 打开当前目录
zheng@shao:~/yolov3_mobilenet_caffe-master$ sudo pip3 install lmdb
zheng@shao:~/moca_furnace-master$ python3 tools/check_lmdb.py -d ~/cj_VOC/lmdb/cj_you_train_lmdb/
zheng@shao:~/moca_furnace-master$ cp train_yolov3_mbv2_handface.sh train_yolov3_mbv2_you.sh
zheng@shao:~/moca_furnace-master/data/voclike_you$ ln -s ~/cj_VOC/lmdb/ ./lmdb
zheng@shao:~/moca_furnace-master/data/voclike_you/lmdb/cj_you_train_lmdb$ pwd 复制下面的路径
zheng@shao:~/moca_furnace-master$ ./train_yolov3_mbv2_you.sh
文章标题:yolov3_mobilenet_caffe-master-訓練-只是做個記錄,
文章链接:http://soscw.com/essay/73499.html