Get up and running with smugVision in 5 minutes!
- Python 3.9+
- SmugMug account with API access
- Ollama installed
# 1. Clone the repository
git clone https://github.com/yourusername/smugvision.git
cd smugvision
# 2. Install dependencies
pip install -r requirements.txt
# 3. Install Ollama and pull the model
ollama pull llama3.2-vision-
API Key & Secret:
- Go to https://api.smugmug.com/api/developer/apply
- Create a new application
- Note your API Key and API Secret
-
User Token & Secret:
python get_smugmug_tokens.py
- Follow the OAuth flow in your browser
- Copy the user token and user secret
python -m smugvision.config.manager --setupThis creates ~/.smugvision/config.yaml with your settings.
# Create reference faces directory
mkdir -p ~/.smugvision/reference_faces
# Organize faces by person
# ~/.smugvision/reference_faces/
# ├── John_Doe/
# │ ├── photo1.jpg
# │ └── photo2.jpg
# └── Jane_Smith/
# └── photo1.jpg
# Optimize for faster processing
python optimize_reference_faces.py ~/.smugvision/reference_facesBy URL:
python -m smugvision --url "https://yoursite.smugmug.com/.../n-XXXXX/album-name"By Album Key:
python -m smugvision --gallery abc123python -m smugvision --url "https://..." --dry-runpython -m smugvision --gallery abc123 --force-reprocesspython -m smugvision --gallery abc123 --include-videospython test_smugmug.py --url "https://..." --listpython test_vision.py path/to/image.jpgpython debug_face_recognition.py path/to/image.jpg# Start Ollama
ollama serve
# Verify model is installed
ollama list- Re-run
python get_smugmug_tokens.py - Verify credentials in
~/.smugvision/config.yaml
- Ensure reference faces directory exists
- Try lowering
face_recognition.tolerancein config - Use clear, well-lit photos in reference faces
- Read the full README.md for detailed documentation
- Review DESIGN.md for architecture details
- Check config.yaml.example for all configuration options
# 1. Preview what would be generated
python -m smugvision --url "https://..." --dry-run
# 2. Process the album
python -m smugvision --url "https://..."
# 3. View results in SmugMug
# Captions and tags are now updated!- Issues: GitHub Issues
- Documentation: See README.md and DESIGN.md
Ready to automate your photo metadata? Let's go! 🚀