Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docker] Install pytesseract and torch #451

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docker/Dockerfile.ros-ubuntu:14.04-pcl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,12 @@ RUN sudo apt-get update && \

# fix latest pip install fcn errors
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python -; sudo -H pip install 'pip<10'
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2 \
pytesseract==0.3.6 \
python-dateutil==2.5.0 \
&& wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl \
&& wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl \
&& sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl

# install package to speedup
RUN sudo pip install freezegun
8 changes: 6 additions & 2 deletions docker/Dockerfile.ros-ubuntu:14.04-pcl1.8
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,12 @@ RUN sudo apt-get update && \

# fix latest pip install fcn errors
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python -; sudo -H pip install 'pip<10'
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2

RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2 \
pytesseract==0.3.6 \
python-dateutil==2.5.0 \
&& wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl \
&& wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl \
&& sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl

# install common package to speedup
RUN sudo pip install freezegun
Expand Down
7 changes: 6 additions & 1 deletion docker/Dockerfile.ros-ubuntu:16.04-pcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ RUN sudo apt-get update && \
sudo rm -rf /var/lib/apt/lists/*
# fix latest pip install fcn errors
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python -; sudo -H pip install 'pip<10'
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2 \
pytesseract==0.3.6 \
python-dateutil==2.5.0 \
&& wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl \
&& wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl \
&& sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl

# install common package to speedup
RUN sudo pip install freezegun
Expand Down
7 changes: 6 additions & 1 deletion docker/Dockerfile.ros-ubuntu:18.04-pcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ RUN sudo apt-get update && \

# fix latest pip install fcn errors
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python -; sudo -H pip install 'pip<10'
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2 \
pytesseract==0.3.6 \
python-dateutil==2.5.0 \
&& wget https://download.pytorch.org/whl/cu90/torch-1.1.0-cp27-cp27mu-linux_x86_64.whl -O torch-1.1.0-cp27-cp27mu-linux_x86_64.whl \
&& wget https://download.pytorch.org/whl/cu90/torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl -O torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl \
&& sudo pip install torch-1.1.0-cp27-cp27mu-linux_x86_64.whl torchvision-0.3.0-cp27-cp27mu-manylinux1_x86_64.whl

# install common package to speedup
RUN sudo pip install freezegun
Expand Down
4 changes: 3 additions & 1 deletion docker/Dockerfile.ros-ubuntu:20.04-pcl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ RUN sudo apt-get update && \

# fix latest pip install fcn errors
RUN curl https://bootstrap.pypa.io/pip/2.7/get-pip.py | sudo python -; sudo -H pip install 'pip<10'
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2
RUN sudo pip install fcn chainercv chainer==6.7.0 cupy-cuda91 decorator==4.4.2 \
pytesseract==0.3.6 \
torch==1.4.0

# install common package to speedup
RUN sudo pip install freezegun
Expand Down