-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Dockerfile, fix imports, and lint docstrings. (#9)
* Drop .idea from project and add to .gitignore. * Remove redundant build steps, rely on base image instead. * Replace opencv-python with opencv-python-headless. Update version to drop Python2 support. Fixes #4. * Upgrade pandas to v1. * Update docstring formatting. * Another docstring update. * Sort imports with isort and remove unused imports. * Ignore training.py from coverage report. No need to report on this, it is untested * Markdown linting. * More docstring updates. * Final docstring updates. * PEP8 * opencv-headless does not need so many deps. * Import DBSCAN from sklearn.
- Loading branch information
Showing
38 changed files
with
725 additions
and
663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,3 +15,4 @@ show_missing = True | |
omit = | ||
**/*_test.py | ||
data/* | ||
deepcell_spots/training.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
# Use tensorflow/tensorflow as the base image | ||
# Use vanvalenlab/deepcell-tf as the base image | ||
# Change the build arg to edit the tensorflow version. | ||
# Only supporting python3. | ||
ARG DEEPCELL_VERSION=0.11.0 | ||
ARG DEEPCELL_VERSION=0.11.0-gpu | ||
|
||
FROM deepcell:${DEEPCELL_VERSION} | ||
FROM vanvalenlab/deepcell-tf:${DEEPCELL_VERSION} | ||
|
||
# System maintenance | ||
RUN /usr/bin/python3 -m pip install --upgrade pip | ||
|
||
# installs git into the Docker image | ||
RUN apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install git -y | ||
RUN apt-get install ffmpeg libsm6 libxext6 -y | ||
|
||
WORKDIR /notebooks | ||
# Install git for postcode installation | ||
RUN apt-get update && apt-get install -y \ | ||
git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Copy the required setup files and install the deepcell-tf dependencies | ||
COPY setup.py README.md requirements.txt /opt/deepcell-spots/ | ||
|
||
# Prevent reinstallation of tensorflow and install all other requirements. | ||
RUN sed -i "/tensorflow>/d" /opt/deepcell-spots/requirements.txt && \ | ||
pip install -r /opt/deepcell-spots/requirements.txt | ||
pip install --no-cache-dir -r /opt/deepcell-spots/requirements.txt | ||
|
||
# Copy the rest of the package code and its scripts | ||
COPY deepcell_spots /opt/deepcell-spots/deepcell_spots | ||
|
||
# Copy over deepcell notebooks | ||
COPY notebooks/ /notebooks/ | ||
|
||
CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.