Skip to content

Commit

Permalink
modified setup-cpu.sh and setup.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
zergmk2 committed Aug 23, 2018
1 parent 603dbaa commit a7babfb
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
6 changes: 6 additions & 0 deletions models/text.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
classes= 2
train = train.txt
valid = test.txt
names = ../models/text.names
backup = backup

7 changes: 4 additions & 3 deletions setup-cpu.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
##CPU 环境配置,支持linux\macOs
conda create -n chineseocr python=3.6 pip scipy numpy jupyter ipython ##运用conda 创建python环境
source activate chineseocr
pip install easydict opencv-contrib-python,Cython -i https://pypi.tuna.tsinghua.edu.cn/simple/ ##选择国内源,速度更快
git submodule init && git submodule update
cd darknet/ && make && cd ..
pip install easydict opencv-contrib-python Cython -i https://pypi.tuna.tsinghua.edu.cn/simple/ ##选择国内源,速度更快
pip install -U pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install h5py lmdb mahotas pandas -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install requests
pip install web.py==0.40.dev0
conda install pytorch=0.2.0 torchvision -c soumith
cd detector/utils
sh make-for-cpu.sh
pushd detector/utils && sh make-for-cpu.sh && popd

6 changes: 3 additions & 3 deletions setup.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
##环境配置,支持linux\macOs
conda create -n chineseocr python=3.6 pip scipy numpy jupyter ipython ##运用conda 创建python环境
source activate chineseocr
pip install easydict opencv-contrib-python,Cython -i https://pypi.tuna.tsinghua.edu.cn/simple/ ##选择国内源,速度更快
git submodule init && git submodule update
pip install easydict opencv-contrib-python Cython -i https://pypi.tuna.tsinghua.edu.cn/simple/ ##选择国内源,速度更快
pip install -U pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install h5py lmdb mahotas pandas,requests -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install web.py==0.40.dev0
conda install pytorch=0.2.0 cuda80 torchvision -c soumith
cd detector/utils
sh make.sh
pushd detector/utils && sh make-for-cpu.sh && popd


0 comments on commit a7babfb

Please sign in to comment.