Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 1011 Bytes

setup.md

File metadata and controls

24 lines (19 loc) · 1011 Bytes

环境配置,支持linux\macOs

conda create -n chineseocr python=3.6 pip scipy numpy jupyter ipython ##运用conda 创建python环境
source activate chineseocr
git submodule init && git submodule update
pip install easydict opencv-contrib-python Cython h5py lmdb mahotas pandas requests bs4 matplotlib lxml -i https://pypi.tuna.tsinghua.edu.cn/simple/
pip install -U pillow -i https://pypi.tuna.tsinghua.edu.cn/simple/

conda install keras tensorflow tensorflow-gpu pip install web.py==0.40.dev0

conda install torchvision conda install cudatoolkit

cpu

##conda install pytorch-cpu torchvision-cpu -c pytorch

pip install torch torchvision

python版本nms无须执行下一步

pushd text/detector/utils && sh make.sh && popd

pip install -Iv tensorflow_estimator==1.3.0

conda install tensorflow_estimator