Code Monkey home page Code Monkey logo

Comments (2)

wanghaisheng avatar wanghaisheng commented on August 15, 2024
FROM dc/mxnet:cuda8.0
# docker build -t dc/mxnet:ctc-ocr .
#  nvidia-docker run dc/mxnet:ctc-ocr python /mxnet/example/warpctc/lstm_ocr.py --gpus 0
RUN apt-get update &&  apt-get install  -y cmake
# Install baidu warpctc
RUN  cd / \
  && git clone https://github.com/baidu-research/warp-ctc \
  && cd warp-ctc \
  && mkdir build \
  && cd build \
  && cmake .. \
  && make \
  && make install \
  && cp ./libwarpctc.so /usr/lib    



ADD ./warpctc-inl.h /mxnet/plugin/warpctc/
RUN cd /mxnet \
 && echo "WARPCTC_PATH = /warp-ctc"  >>config.mk  \
  && echo "MXNET_PLUGINS += plugin/warpctc/warpctc.mk"   >>config.mk  \
&&   make clean \
 && make -j$(nproc) 


RUN  apt-get install -y python-pip python-dev
RUN pip install  -i https://pypi.tuna.tsinghua.edu.cn/simple  captcha

from awesome-ocr.

wanghaisheng avatar wanghaisheng commented on August 15, 2024

#FROM nvidia/cuda:7.5-cudnn4-devel
FROM nvidia/cuda:8.0-cudnn5-devel-ubuntu14.04

# docker build -t dc/mxnet:cuda8.0 .
#  nvidia-docker run dc/mxnet:cuda8.0 python /mxnet/example/image-classification/train_mnist.py --gpus 0
MAINTAINER Mu Li <[email protected]>
RUN apt-get update &&  apt-get install  -y apt-transport-https
ADD ./sources.list /etc/apt/sources.list
# install the core library
RUN apt-get update && apt-get install -y build-essential git libopenblas-dev libopencv-dev
RUN git clone --recursive https://github.com/wanghaisheng/mxnet/ && cd mxnet && \
    cp make/config.mk . && \
    echo "USE_CUDA=1" >>config.mk && \
    echo "USE_CUDA_PATH=/usr/local/cuda" >>config.mk && \
    echo "USE_CUDNN=1" >>config.mk && \
    echo "USE_BLAS=openblas" >>config.mk && \
    make -j$(nproc) ADD_LDFLAGS=-L/usr/local/cuda/lib64/stubs
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:$LD_LIBRARY_PATH 

# python pakcage
RUN apt-get install -y python-numpy wget unzip
ENV PYTHONPATH /mxnet/python

sources.list

# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty main main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-security main restricted universe multiverse

# 预发布软件源,不建议启用
# deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ trusty-proposed main restricted universe multiverse

from awesome-ocr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.