forked from juglab/FourierImageTransformer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 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,13 @@ | ||
# Build Singularity Container | ||
|
||
This is the procedure we used to build singularity containers. The singularity recipes were generated | ||
with [neurodocker](https://github.com/ReproNim/neurodocker). | ||
|
||
Build Python package: | ||
`python setup.py bdist_wheel` | ||
|
||
Build singularity recipe: | ||
`neurodocker generate singularity -b nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 -p apt --copy ./dist/fourier_image_transformers-0.2.0-py3-none-any.whl /fourier_image_transformers-0.2.0-py3-none-any.whl --miniconda create_env=fit conda_install='python=3.7 astra-toolbox pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch -c astra-toolbox/label/dev' pip_install='/fourier_image_transformers-0.2.0_zero-py3-none-any.whl' activate=true --entrypoint "/neurodocker/startup.sh python" > v0.2.0.Singularity` | ||
|
||
Build singularity container: | ||
`sudo singularity build fit_v0.2.0.simg v0.2.0.Singularity` |