Skip to content

Latest commit

Β 

History

History
171 lines (121 loc) Β· 4.48 KB

File metadata and controls

171 lines (121 loc) Β· 4.48 KB

pre-commit Imports: isort Code style: black


Logo

Python Project Template

A Template for AI module build with python!
Explore the docs Β»

View Demo Β· Report Bug Β· Request Feature


πŸ“‹ Table of Contents

πŸ“‘ About The Project

Template image

Introduce your module here

πŸ’» Built With

This section should list any major frameworks/libraries used to bootstrap your project. Here are a few examples.

πŸ›  Getting Started

πŸ“Ž Prerequisites

  • Ubuntu
  • Python 3.8.16
  • Pip 23.0.1
  • Conda 4.12.0

βš™οΈ Installation

  1. Clone the repo
git clone https://github.com/KudoKhang/python-project-template
  1. Install packages

βš’οΈ CONDA

Create your conda virtual environment, activate it and install packages from requirements.txt

conda create your_env python=3.8
conda activate your_env
pip3 install -r requirements.txt

βš”οΈ DOCKER

docker compose -f docker-compose.yml run your_service

# Using GPU, make sure `cuda` is available in your device
docker compose -f docker-compose.yml run your_service_gpu
  1. Install pre-commit
  • pre-commit will check the PEP8 format before committing. If the code does not comply with PEP8 format, isort & black will be automatically refactored code
  • auto testing with pytest before push code to GitLab
pre-commit install --hook-type pre-commit --hook-type pre-push --allow-missing-config

πŸ€– Usage

  1. Change pretrained model at conf/config.yaml

  2. Run

python3 script/inference.py
  1. Test
pytest

πŸ›€ Roadmap

  • CI/CD
  • GitHub Actions

See the open issues for a full list of proposed features (and known issues).

πŸ‘‹ Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/docs)
  3. Commit your Changes (git commit -m 'feat: add something')
  4. Push to the Branch (git push origin feat/docs)
  5. Open a Pull Request

πŸ‘¨β€πŸ’» Contributors

🐀 KudoKhang 🐀