pip install earsegmentationai
# Clone the repository
git clone https://github.com/umitkacar/Ear-segmentation-ai.git
cd Ear-segmentation-ai
# Install using Poetry
poetry install
# Clone the repository
git clone https://github.com/umitkacar/Ear-segmentation-ai.git
cd Ear-segmentation-ai
# Install in development mode
pip install -e .
# Check version
earsegmentationai --version
# Run help
earsegmentationai --help
If you have a CUDA-capable GPU, install PyTorch with CUDA support:
# CUDA 11.8
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu118
# CUDA 12.1
pip install torch torchvision --index-url https://download.pytorch.org/whl/cu121
The ear segmentation model (approximately 55MB) will be automatically downloaded on first use to:
~/.cache/earsegmentationai/models/
If you get import errors, ensure the package is installed:
pip show earsegmentationai
Check PyTorch CUDA availability:
import torch
print(torch.cuda.is_available())
On Linux/Mac, you may need to use sudo
or create a virtual environment:
python -m venv ear-env
source ear-env/bin/activate # On Windows: ear-env\Scripts\activate
pip install earsegmentationai