https://hub.docker.com/r/fauberso/jupyter-keras

https://github.com/fauberso/dockerimg-jupyter-keras

https://github.com/keras-team/keras/

http://keras.io/

https://keras.io/examples/


# tensorflow 部署

https://abc.htmltoo.com/thread-44962.htm


Dockerfile:

FROM python:3.8
MAINTAINER "Frederic Auberson"
RUN apt-get update && apt-get install -y \
    g++ \
    tini \
    bash \
    git \
    openssh-client \
    && rm -rf /var/lib/apt/lists/*
	
RUN pip3 install tensorflow-gpu
RUN pip3 install pandas
RUN pip3 install numpy \
        sklearn \
        matplotlib \
        seaborn \
        jupyter \
        pyyaml \
        pre-commit \
        graphviz \
        pydot-ng \
        h5py \
        numpy_indexed \
        tensorflow-addons && \
    pip3 install keras --no-deps && \
    pip3 install "tqdm>=4.36.1" && \
    pip3 install imutils
COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
# Jupyter and Tensorboard ports
EXPOSE 8888 6006
# Store notebooks in this mounted directory
RUN ["mkdir", "git"]
VOLUME /git
# Use Tini: It will reap zombie processes and prevent crashes in some situations
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]

jupyter_notebook_config.py:

# Get the config object
c = get_config()
# Inline figures when using Matplotlib
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip = '*'
c.NotebookApp.allow_remote_access = True
# Do not open a browser window by default when using notebooks
c.NotebookApp.open_browser = False
# INSECURE: No token. Always use jupyter over ssh tunnel
c.NotebookApp.token = ''
c.NotebookApp.notebook_dir = '/git'
# Allow to run Jupyter from root user inside Docker container
c.NotebookApp.allow_root = True


Keras是目前深度学习研究领域非常流行的框架,相比于TensorFlow,Keras是一种更高层次的深度学习API。

Keras使用Python编写而成,包含了大量模块化的接口,有很多常用模型仅需几行代码即可完成,大大提高了深度学习的科研效率。它是一个高级接口,后端可支持TensorFlow、Theano、CNTK等多种深度学习基础框架,默认为TensorFlow,其他需要单独设置。


Keras具备了三个核心特点:

允许研究人员快速搭建原型设计。

支持深度学习中最流行的卷积神经网络与循环神经网络,以及它们两者的组合。

可以在CPU与GPU上无缝运行。


https://www.toutiao.com/i7010679460659757604


签名:这个人很懒,什么也没有留下!
最新回复 (0)
返回