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

Adding Digits 6 code, OpenCV and Tensorflow #2

Open
wants to merge 9 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
17 changes: 14 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ RUN mv ${HOME}/4q.ico ${HOME}/digits/digits/static/images/nvidia.ico
# move the layout with fixed links
RUN mv ${HOME}/layout.html ${HOME}/digits/digits/templates/layout.html
WORKDIR ${HOME}/digits
RUN pip2 install opencv-python
RUN pip2 install tensorflow==1.2.1
RUN python setup.py install

# install two plugins
Expand All @@ -52,14 +54,23 @@ RUN python setup.py install
WORKDIR ${HOME}
# get some test data to play with
RUN python -m digits.download_data cifar10 ~/cifar10
RUN chown -R ${NB_USER} ${HOME}

WORKDIR ${HOME}
# download sunnybrook data
RUN mkdir ${HOME}/sunnybrook
WORKDIR ${HOME}/sunnybrook
RUN curl 'http://www.cardiacatlas.org/share/download.php?id=3&token=WgD8N1RrY2QvAL245wTPMCAeSAcRTjJG&download' -o dicoms.zip &&\
unzip -q dicoms.zip && rm dicoms.zip
RUN curl 'http://www.cardiacatlas.org/share/download.php?id=2&token=IlxjOeV7ZviYLTqP627LmqqVHtyUuuK3&download' -o contours.zip &&\
unzip -q contours.zip && rm contours.zip
# fix permissions and change user
RUN chown -R ${NB_USER} ${HOME}
USER ${NB_USER}

WORKDIR ${HOME}
# setup environment
ENV DIGITS_JOBS_DIR=${HOME}/jobs
ENV DIGITS_LOGFILE_FILENAME=${HOME}/digits.log
ENV PYTHONPATH=/usr/local/python


ENTRYPOINT [""]
CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Digits Docker in Binder using a Dockerfile
A simple repository to get [NVIDIA DIGITS](https://github.com/NVIDIA/DIGITS) running inside of Binder for easier experimentation and exploration.
A simple repository to get [NVIDIA DIGITS](https://github.com/NVIDIA/DIGITS) running inside of Binder for easier experimentation and exploration. Here we try the latest DIGITS image

[![Binder](http://mybinder.org/badge.svg)](http://mybinder.org/v2/gh/4Quant/digits-docker-binder/master?urlpath=digits)

Expand Down
3 changes: 3 additions & 0 deletions layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
<link rel="stylesheet" href="{{ url_for('static', filename='css/c3.min.css', ver=dir_hash) }}">
<title>{% block title %}DIGITS{% endblock %}</title>

<script type="text/javascript">
var URL_PREFIX = "{{config['URL_PREFIX']}}";
</script>
<script src="{{ url_for('static', filename='js/3rdparty/jquery-1.11.1.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/3rdparty/bootstrap-3.3.6.min.js') }}"></script>
<script src="{{ url_for('static', filename='js/3rdparty/bootbox-4.3.0.min.js') }}"></script>
Expand Down