Release/1.1 (#174)
* introduce different running modes: default, debug, experiment * fix pytorch installation in setup_conda.sh * fix incorrect calculation of precision, recall and f1 score in wandb callback * add `_self_` to config.yaml for compatibility with hydra1.1 * fix setting seed in `train.py` so it's skipped when `seed=null` * add exception message when trying to use wandb callbacks with `trainer.fast_dev_run=true` * change `axis=-1` to `dim=-1` in LogImagePredictions callback * add 'Reproducibilty' section to README.md
This commit is contained in:
1 parent
89b502b090
commit
86f30fb320
19 files changed
+131
-81
No files matched your search
+22
-15
@@ -1,33 +1,40 @@
|
||||
#!/bin/bash
|
||||
# Run from root folder with: bash bash/setup_conda.sh
|
||||
|
||||
# check if conda is installed
|
||||
|
||||
# Check if conda is installed
|
||||
if ! command -v conda &> /dev/null
|
||||
then
|
||||
echo "The 'conda' command could not be found. Exiting..."
|
||||
exit
|
||||
fi
|
||||
|
||||
# This line is needed for enabling conda env activation
|
||||
source ~/miniconda3/etc/profile.d/conda.sh
|
||||
|
||||
# Configure conda env
|
||||
read -rp "Enter environment name: " env_name
|
||||
# Configure env
|
||||
read -rp "Enter conda environment name: " env_name
|
||||
read -rp "Enter python version (recommended '3.8') " python_version
|
||||
read -rp "Enter cuda version (recommended '10.2', or 'none' for CPU only): " cuda_version
|
||||
read -rp "Enter pytorch version (recommended '1.8.1'): " pytorch_version
|
||||
read -rp "Enter cuda version ('10.2', '11.1' or 'none' for CPU only): " cuda_version
|
||||
|
||||
# Create conda env
|
||||
|
||||
# Create env
|
||||
conda create -y -n "$env_name" python="$python_version"
|
||||
conda activate "$env_name"
|
||||
|
||||
# Install pytorch
|
||||
|
||||
# Install pytorch + cuda
|
||||
if [ "$cuda_version" == "none" ]; then
|
||||
conda install -y pytorch=$pytorch_version torchvision torchaudio cpuonly -c pytorch
|
||||
conda install -n "$env_name" -y pytorch torchvision torchaudio cpuonly -c pytorch
|
||||
elif [ "$cuda_version" == "10.2" ]; then
|
||||
conda install -n "$env_name" pytorch torchvision torchaudio cudatoolkit=$cuda_version -c pytorch
|
||||
elif [ "$cuda_version" == "11.1" ]; then
|
||||
conda install -n "$env_name" pytorch torchvision torchaudio cudatoolkit=$cuda_version -c pytorch -c nvidia
|
||||
else
|
||||
conda install -y pytorch=$pytorch_version torchvision torchaudio cudatoolkit=$cuda_version -c pytorch
|
||||
echo "Incorrect cuda version. Exiting..."
|
||||
exit
|
||||
fi
|
||||
|
||||
echo "\n"
|
||||
echo "To activate this environment, use:"
|
||||
|
||||
# Final message
|
||||
echo "======================================="
|
||||
echo "To activate this environment use:"
|
||||
echo "conda activate $env_name"
|
||||
echo "======================================="
|
||||
echo -e "\a"
|
||||
Reference in new issue
Block a user