-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from SpikeInterface/kilosort4
Kilosort4 image
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,38 @@ | ||
FROM nvidia/cuda:12.0.0-base-ubuntu20.04 | ||
|
||
LABEL maintainer="Alessio Buccino <[email protected]>" | ||
|
||
# USER root | ||
# Ubuntu package installs | ||
RUN apt update && \ | ||
apt install -y --no-install-recommends \ | ||
libfftw3-dev \ | ||
git \ | ||
wget && \ | ||
apt clean && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# install miniconda | ||
ENV MINICONDA_VERSION 24.1.2-0 | ||
ENV PY_VERSION py311 | ||
ENV CONDA_DIR /home/miniconda3 | ||
ENV LATEST_CONDA_SCRIPT "Miniconda3-${PY_VERSION}_${MINICONDA_VERSION}-Linux-x86_64.sh" | ||
|
||
RUN wget --quiet https://repo.anaconda.com/miniconda/$LATEST_CONDA_SCRIPT -O ~/miniconda.sh && \ | ||
bash ~/miniconda.sh -b -p $CONDA_DIR && \ | ||
rm ~/miniconda.sh | ||
ENV PATH=$CONDA_DIR/bin:$PATH | ||
RUN conda update conda && \ | ||
conda install conda-build | ||
|
||
# make conda activate command available from /bin/bash --login shells | ||
RUN echo ". $CONDA_DIR/etc/profile.d/conda.sh" >> /root/.profile | ||
# make conda activate command available from /bin/bash --interactive shells | ||
RUN conda init bash | ||
|
||
# install torch | ||
# RUN conda install -y pytorch pytorch-cuda=11.8 -c pytorch -c nvidia | ||
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 | ||
|
||
# install kilosort4 | ||
RUN pip install kilosort==4.0 |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker build -t spikeinterface/kilosort4-base:latest -t spikeinterface/kilosort4-base:4.0_cuda-12.0.0 . |
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
docker push --all-tags spikeinterface/kilosort4-base |