Skip to content

Latest commit

 

History

History
106 lines (81 loc) · 3.57 KB

readme.md

File metadata and controls

106 lines (81 loc) · 3.57 KB

binfinder

tracking

  • repo directory structure
  • setup pre-commit
  • select camera stream
  • check for test data and setup
  • check for gpu devices and setup
  • check and list models and select one for inference
  • porting inference logic from jupyter notebook to python script
  • multithreading
  • organize helper functions
  • converting coordinates to motion
  • logging and analytics setup
  • remove gdown dependency
  • ruff setup
  • pytest setup
  • checking for failures in logic
  • proper setup instructions for each platform
    • windows
    • mac
    • linux
    • docker
    • nix
  • editor setup
    • vscode, zed, pycharm
    • vim, neovim

backburner

  • seamless issue creation
  • setup semantic-release
  • releases and changelog
  • assertions for faster iteration
  • setup github actions
  • low latency webcam refer

setup guide

simple instructions wip recommended to use wsl in windows

  1. install the latest stable version of python from python.org, or use a version manager like pyenv or nix
  • v3.11.0 to 3.12.3 recommended
  1. install poetry usind pipx to install poetry is recommended
  2. clone the repository
  3. install dependencies
poetry install
  1. run the main script
poetry run python src/binfinder

project files

directory structure

root
├── src
│   ├── binfinder
│   │   ├── __init__.py -- starting point
│   │   ├── __main__.py -- main function
│   │   ├── config -- configuration files
│   │   │   ├── __init__.py
│   │   │   ├── camera.py
│   │   ├── helpers -- helper functions
│   │   │   ├── __init__.py
│   │   │   ├── camera.py
│   ├── tests -- test files wip
│   ├── data
│   │   ├── result -- annotated results, graphs and logs
│   │   ├── test -- test images dataset
│   │   ├── train -- train images dataset
│   │   ├── weights -- model weights

.commitlintrc.json and .releaserc.json

these files are used by semantic-release to determine the type of the next release. the .commitlintrc.json file is used to lint the commit messages. the .releaserc.json file is used to determine the version of the next release based on the commit messages. to lint commit messages, this project uses the default configuration of @commitlint/config-conventional.

.python-version file

the .python-version file contains the python version used in this project. this project has been built with using pyenv as python version manager.

.pre-commit-config.yaml file

this file is used by pre-commit to determine the hooks that will be run before each commit. the hooks are defined in the hooks section of the file. the hooks are run in the order they are defined in the file.

.github/workflows folder

this repository uses github actions for ci/cd. ci is composed of lint with pre-commit and test with pytest. release is composed of lint, test, release with semantic-release.

  • lint is done with pre-commit. to run lint locally, run pre-commit run --all-files.
  • test is done with pytest. to run test locally, run pytest. or poetry run pytest if you use poetry as package manager.
  • release is done with semantic-release