forked from chineseocr/chineseocr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|