Download scripts/mouse.sh from ChatterjeeLab/BranchSBM: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/ChatterjeeLab/BranchSBM/resolve/main/scripts/mouse.sh
- Command line
-
hf download hf://ChatterjeeLab/BranchSBM/scripts/mouse.sh
-
curl -L -o mouse.sh https://huggingface.co/ChatterjeeLab/BranchSBM/resolve/main/scripts/mouse.sh
662 Bytes
| HOME_LOC=/path/to/your/home/BranchSBM | |
| ENV_LOC=/path/to/your/envs/branchsbm | |
| SCRIPT_LOC=$HOME_LOC | |
| LOG_LOC=$HOME_LOC/logs | |
| DATE=$(date +%m_%d) | |
| SPECIAL_PREFIX='mouse_branched' | |
| PYTHON_EXECUTABLE=$ENV_LOC/bin/python | |
| # Set GPU device | |
| export CUDA_VISIBLE_DEVICES=1 | |
| # =================================================================== | |
| source "$(conda info --base)/etc/profile.d/conda.sh" | |
| conda activate $ENV_LOC | |
| cd $HOME_LOC | |
| $PYTHON_EXECUTABLE $SCRIPT_LOC/train.py \ | |
| --config_path "$SCRIPT_LOC/configs/mouse.yaml" \ | |
| --epochs 100 \ | |
| --run_name "${DATE}_${SPECIAL_PREFIX}" >> ${LOG_LOC}/${DATE}_${SPECIAL_PREFIX}_train.log 2>&1 | |
| conda deactivate |