This template is customized from a book tittled Good Research Code handbook.
git clone https://github.com/alannguyencs/code_template.git
git remote rm origin
conda create -n code_template_env python=3.8
conda activate code_template_env
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
cd code_template
git remote remove origin
code .
In Visual studio, press Ctrl + Shift + P to change the Conda environment interpreter
conda env export > environment.yml
pip install -e .
python -m ipykernel install --user --name=your-env
- Check git size:
git count-objects -vH
- Export conda environment:
conda env export > environment.yml
- Update conda environment from submodules:
- Go to submodule and install it:
pip install -e .
conda env update --name code_template_env -f environment.yml --prune
- Go to submodule and install it: