Skip to main content

Pytorch Based - Efficient and Lightweight Ear Segmentation

Project description

Efficient and Lightweight Ear Segmentation

License: MIT pre-commit.ci status

Python38 Python39 Python310 PyTorch Torchvision Cuda Poetry Black Mypy isort

Download Model 📂

GoogleDrive Github

⚙️ Requirements ⚙️

  • Python 3.8 to Python3.10 (Virtualenv recommended)
  • Display Server for showing results
  • Optional: poetry
  • Optional: Nvidia CUDA for cuda usage

🛠️ Installation 🛠️

Pip installation

pip install -r requirements.txt

Poetry installation

poetry shell
poetry install

Optional (If you have multiple python installation)

poetry env use $(which python3.10)
poetry shell
poetry install

Usage

usage: earsegmentationai_cli.py [-h] -m {c,p} [-d [{cpu,cuda}]] [-fp FOLDERPATH] [-id [DEVICEID]]

options:
  -h, --help            show this help message and exit
  -m {c,p}, --mode {c,p}
                        Select camera or picture mode
  -d [{cpu,cuda}], --device [{cpu,cuda}]
                        Run in gpu or cpu mode
  -fp FOLDERPATH, --folderpath FOLDERPATH
                        Folder path for image(s) for image mode only
  -id [DEVICEID], --deviceId [DEVICEID]
                        Camera deviceId /dev/videoX for camera mode only

Webcam Mode 📷

python earsegmentationai_cli.py --mode c --device cpu
python earsegmentationai_cli.py --mode c --device cuda
python earsegmentationai_cli.py --mode c --deviceId 1 --device cuda

Image Mode 🖼️

python earsegmentationai_cli.py --mode p --fp /path/xxx/

Youtube Video 📸 ✨

Youtube

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earsegmentationai-1.0.2.tar.gz (7.3 kB view hashes)

Uploaded Source

Built Distribution

earsegmentationai-1.0.2-py3-none-any.whl (10.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page