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

remove trained models #275

Merged
merged 4 commits into from
Feb 27, 2024
Merged
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
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ repos:
rev: v2.2.6
hooks:
- id: codespell
exclude: ^(nobrainer/_version\.py|versioneer\.py)$
exclude: ^(nobrainer/_version\.py|versioneer\.py|pyproject\.toml|CHANGELOG\.md)$
17 changes: 2 additions & 15 deletions docker/cpu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,8 @@
FROM tensorflow/tensorflow:2.14.0-jupyter
RUN curl -sSL http://neuro.debian.net/lists/focal.us-nh.full | tee /etc/apt/sources.list.d/neurodebian.sources.list \
&& export GNUPGHOME="$(mktemp -d)" \
&& echo "disable-ipv6" >> ${GNUPGHOME}/dirmngr.conf \
&& (apt-key adv --homedir $GNUPGHOME --recv-keys --keyserver hkp://pgpkeys.eu 0xA5D32F012649A5A9 \
|| { curl -sSL http://neuro.debian.net/_static/neuro.debian.net.asc | apt-key add -; } ) \
&& apt-get update \
&& apt-get install -y git-annex-standalone git \
&& rm -rf /tmp/*
FROM tensorflow/tensorflow:2.15.0.post1-jupyter
COPY [".", "/opt/nobrainer"]
RUN cd /opt/nobrainer \
&& sed -i 's/tensorflow >=/tensorflow-cpu >=/g' setup.cfg
RUN python3 -m pip install --no-cache-dir /opt/nobrainer datalad datalad-osf
RUN git config --global user.email "neuronets@example.com" \
&& git config --global user.name "Neuronets maintainers"
RUN datalad clone https://github.com/neuronets/trained-models /models \
&& cd /models && git-annex enableremote osf-storage \
&& datalad get -s osf-storage .
RUN python3 -m pip install --no-cache-dir /opt/nobrainer
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
WORKDIR "/work"
Expand Down
17 changes: 2 additions & 15 deletions docker/gpu.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,7 @@
FROM tensorflow/tensorflow:2.14.0-gpu-jupyter
RUN curl -sSL http://neuro.debian.net/lists/focal.us-nh.full | tee /etc/apt/sources.list.d/neurodebian.sources.list \
&& export GNUPGHOME="$(mktemp -d)" \
&& echo "disable-ipv6" >> ${GNUPGHOME}/dirmngr.conf \
&& (apt-key adv --homedir $GNUPGHOME --recv-keys --keyserver hkp://pgpkeys.eu 0xA5D32F012649A5A9 \
|| { curl -sSL http://neuro.debian.net/_static/neuro.debian.net.asc | apt-key add -; } ) \
&& apt-get update \
&& apt-get install -y git-annex-standalone git \
&& rm -rf /tmp/*
FROM tensorflow/tensorflow:2.15.0.post1-gpu-jupyter
COPY [".", "/opt/nobrainer"]
RUN cd /opt/nobrainer
RUN python3 -m pip install --no-cache-dir /opt/nobrainer datalad datalad-osf
RUN git config --global user.email "neuronets@example.com" \
&& git config --global user.name "Neuronets maintainers"
RUN datalad clone https://github.com/neuronets/trained-models /models \
&& cd /models && git-annex enableremote osf-storage \
&& datalad get -s osf-storage .
RUN python3 -m pip install --no-cache-dir /opt/nobrainer
ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
WORKDIR "/work"
Expand Down
4 changes: 2 additions & 2 deletions nobrainer/layers/Conv_v.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
sample is a `Tensor`."""


"""Variational convolutional layer Abstract nD convolution layer (private,
"""Variational convolutional layer Abstract n-dimensional convolution layer (private,
used as implementation base).
This layer creates a convolution kernel that is convolved
(actually cross-correlated) with the layer input to produce a tensor of
Expand Down Expand Up @@ -361,7 +361,7 @@ def _apply_divergence(


class _ConvReparameterization(_ConvVariational):
"""Abstract nD convolution layer (private, used as implementation base).
"""Abstract n-dimensional convolution layer (private, used as implementation base).
This layer creates a convolution kernel that is convolved
(actually cross-correlated) with the layer input to produce a tensor of
outputs. It may also include a bias addition and activation function
Expand Down
Loading