-
Notifications
You must be signed in to change notification settings - Fork 22
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
1 parent
ca761da
commit e01f546
Showing
2 changed files
with
46 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,16 @@ | ||
Bootstrap: docker | ||
From: ghcr.io/truatpasteurdotfr/model-angelo:main | ||
|
||
%runscript | ||
# do not use ~/.local python | ||
PYTHONNOUSERSITE=1 | ||
export PYTHONNOUSERSITE | ||
|
||
export TORCH_HOME=/public/model_angelo_weights | ||
|
||
eval "$(conda shell.bash hook)" | ||
conda activate model_angelo | ||
|
||
#source `which activate` model_angelo | ||
model_angelo "$@" | ||
|
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,30 @@ | ||
Bootstrap: docker | ||
From: continuumio/miniconda3 | ||
|
||
%post | ||
|
||
conda update conda | ||
conda upgrade --all -y | ||
|
||
# https://github.com/3dem/model-angelo | ||
cd /opt && \ | ||
git clone https://github.com/3dem/model-angelo.git && \ | ||
export TORCH_HOME=/public/model_angelo_weights && \ | ||
mkdir -p /public/model_angelo_weights && \ | ||
cd model-angelo && \ | ||
bash install_script.sh --download-weights | ||
|
||
|
||
%runscript | ||
# do not use ~/.local python | ||
PYTHONNOUSERSITE=1 | ||
export PYTHONNOUSERSITE | ||
|
||
export TORCH_HOME=/public/model_angelo_weights | ||
|
||
eval "$(conda shell.bash hook)" | ||
conda activate model_angelo | ||
|
||
#source `which activate` model_angelo | ||
model_angelo "$@" | ||
|