1.6 KiB
1.6 KiB
Setup
-
Install anaconda if you don't already have it
https://docs.conda.io/projects/conda/en/latest/user-guide/install/download.html
-
Clone repo
git clone https://github.com/kinoai/hackathon-template cd hackathon-template -
Create conda environment (change 'hack_env' to any name you want)
conda update conda conda env create -f conda_env.yml -n hack_env conda activate hack_env -
Make sure proper python PATH is loaded
- Unix
which python - Windows
for %i in (python.exe) do @echo. %~$PATH:i
Expected result:
PATH_TO_CONDA/envs/ENV_NAME/bin/python - Unix
-
Install requirements
pip install -r requirements.txt -
Log to your Weights&Biases account
wandb login -
Run training
cd project python train.py
Important notes!
- If you are not using GPU (CUDA incompatible GPU) you may need to specify the number of GPUs manually instead of leaving the default
-1inproject_config.yaml:num_of_gpus: 0
PyCharm setup
- open this repository as PyCharm project
- set "hack_env" as project interpreter:
Ctrl + Shift + A -> type "Project Interpreter" - mark folder "project" as sources root:
right click on directory -> "Mark Directory as" -> "Sources Root" - set terminal emulation:
Ctrl + Shift + A -> type "Edit Configurations..." -> select "Emulate terminal in output console" - run training:
right click on train.py file -> "Run 'train'"