Release/1.2 (#198)

* update template to pytorch 1.10+ and lightning 1.5+
* add experiment mode to all experiment configs and implement special logging paths for experiment mode
* add `MaxMetric` to model, for computation of best so far validation accuracy
* add RichProgressBar to default callbacks
* get rid of trick for preventing auto hparam logging, since lightning now supports it with `self.save_hyperparameters(logger=False)`
* add `self.save_hyperparameters()` to datamodule since lightinng now supports it
* deprecate Apex support
* deprecate bash script for conda setup
* change `terminate_on_nan` debug option to `detect_anomaly` for compatibility with lightning v1.5
* specify model and datamodule during `trainer.test()`, for compatibility with lightning v1.5
* remove `configs/trainer/all_params.yaml`
* make hyperparameter optimization compatible with lightning v1.5
* general documentation improvements
This commit is contained in:
Łukasz Zalewski authored and GitHub committed 2021-11-05 12:38:44 +01:00
1 parent 6159c413f2
commit 9468ef91c5
29 files changed
+278 -330

No files matched your search

+1 -3
View File
@@ -4,6 +4,4 @@
python run.py trainer.max_epochs=5
python run.py trainer.max_epochs=5 experiment=example_simple
python run.py trainer.max_epochs=5 experiment=example_full
python run.py trainer.max_epochs=10 logger=csv
-40
View File
@@ -1,40 +0,0 @@
#!/bin/bash
# Check if conda is installed
if ! command -v conda &> /dev/null
then
echo "The 'conda' command could not be found. Exiting..."
exit
fi
# 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 ('10.2', '11.1' or 'none' for CPU only): " cuda_version
# Create env
conda create -y -n "$env_name" python="$python_version"
# Install pytorch + cuda
if [ "$cuda_version" == "none" ]; then
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
echo "Incorrect cuda version. Exiting..."
exit
fi
# Final message
echo "======================================="
echo "To activate this environment use:"
echo "conda activate $env_name"
echo "======================================="
echo -e "\a"