Skip to content

Latest commit

 

History

History
60 lines (40 loc) · 1.26 KB

README.md

File metadata and controls

60 lines (40 loc) · 1.26 KB

foundation

This repository serves as a template with configuration files for common python tools, including poetry, pre-commit, black, isort, etc.

Development setup

Conda

Recommend to use Miniconda to create a virtual environment:

$ conda create --name foundation python=3.9
# Answer yes to the prompt
$ conda activate foundation

Whenever you work on this you can activate the environment again using:

$ conda activate foundation

Poetry

The project is set up using the poetry dependency management tool.

For Linux, macOS, and Windows (WSL):

$ curl -sSL https://install.python-poetry.org | python3 -

An alternative way for macOS is:

$ brew install poetry

Installation

$ poetry install
# Initialize pre-commit hooks
$ pre-commit install

Run test cases with:

$ pytest -n 8

References

Collect some useful code snippets from following repositories with nicely modification:

  1. open-mmlab/mmcv
  2. facebookresearch/fvcore
  3. facebookresearch/detectron2