Skip to content

Commit

Permalink
Adds pydot and graphviz for plotting model layer graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
hlapp committed Nov 27, 2024
1 parent 70603d0 commit 01a1593
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Dockerfile-pyonly
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,14 @@ RUN [[ -n ${CUDA} ]] && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Additional packages we may need
# Install graphviz for pydot, which is needed by keras.util.plot_model
RUN mamba install --yes \
'graphviz' && \
mamba clean --all -f -y && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Additional packages we may need
COPY common-requirements.txt requirements.tf-${TENSORFLOW_VERSION}.txt /tmp/
RUN pip install --no-cache-dir \
tensorflow==${TENSORFLOW_VERSION} \
Expand Down
2 changes: 2 additions & 0 deletions common-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,5 @@ oaklib
matplotlib<3.9.0
seaborn
coolbox
# pydot will need graphviz as dependency
pydot

0 comments on commit 01a1593

Please sign in to comment.