How drivendataorg/zamba works
Zamba is a camera-trap computer-vision toolkit with CLI and Python workflows for classifying images and videos, training custom classifiers, and running depth and DensePose analysis. Users supply media and configuration; workflows validate and preprocess inputs, run registered or custom models, and produce predictions or training outputs. The graph includes shared model infrastructure and image/video processing. Some subsystem links are based on README statements or SOURCE INDEX references; unsampled implementation details and their internal calls are not inferred.
Main entry points: manager.py Image workflow manager · cli.py Video CLI · video.py Video loading · config.py Video configuration
Components 21
Image workflows
- Image configuration
zamba/images/config.py - Image workflow manager
zamba/images/manager.py - Image data
zamba/images/data.py - Image classifier
zamba/images/classifier.py - Image results
zamba/images/result.py - Image boxes
zamba/images/bbox.py
Video workflows
- Video configuration
zamba/models/config.py - Video metadata
zamba/data/metadata.py - Video loading
zamba/data/video.py - Frame detector
zamba/object_detection/yolox/megadetector_lite_yolox.py
Models and training
- Video model workflow
zamba/models/model_manager.py - Model instantiation
zamba/models/instantiation.py - Model registry
zamba/models/registry.py - Video classifier module
zamba/pytorch_lightning/video_modules.py - Tensor transforms
zamba/pytorch/transforms.py - Runtime settings
zamba/settings.py
Additional analysis
- Depth estimation
zamba/models/depth_estimation/depth_manager.py - DensePose analysis
zamba/models/densepose/densepose_manager.py
Other components
- CLI or Python user
Connections 27
- CLI or Python user → Video CLI: runs video commands
- CLI or Python user → Image CLI: runs image commands
- Video CLI → Video model workflow: dispatches training
zamba/cli.py - Video CLI → Video configuration: configures prediction
zamba/cli.py - Video CLI → Depth estimation: dispatches depth
zamba/cli.py - Video CLI → DensePose analysis: dispatches DensePose
zamba/cli.py - Image CLI → Image configuration: builds configuration
zamba/image_cli.py - Image CLI → Image workflow manager: dispatches image work
zamba/image_cli.py - Image workflow manager → Image data: loads image data
zamba/images/manager.py - Image workflow manager → Image classifier: runs classification
zamba/images/manager.py - Image workflow manager → Model instantiation: creates model
zamba/images/manager.py - Image workflow manager → Tensor transforms: uses transforms
zamba/images/manager.py - Image workflow manager → Image results: writes results
zamba/images/manager.py - Image configuration → Image boxes: uses box helpers
zamba/images/config.py - Video configuration → Video metadata: uses metadata
zamba/models/config.py - Video configuration → Video loading: validates video inputs
zamba/models/config.py - Video loading → Frame detector: selects frames
zamba/data/video.py - Video model workflow → Model instantiation: creates model
zamba/models/model_manager.py - Video model workflow → Video loading: prepares video data
zamba/models/model_manager.py - Video model workflow → Video classifier module: trains model
zamba/models/model_manager.py - Model instantiation → Model registry: resolves model
zamba/models/instantiation.py - Model registry → Video classifier module: registers model classes
zamba/models/registry.py - Video classifier module → Tensor transforms: uses transforms
zamba/pytorch_lightning/video_modules.py - Depth estimation → Video loading: loads video
zamba/models/depth_estimation/depth_manager.py - Depth estimation → Frame detector: uses detections
zamba/models/depth_estimation/depth_manager.py - DensePose analysis → Video loading: processes video
zamba/models/densepose/densepose_manager.py - Video configuration → Runtime settings: uses defaults
zamba/models/config.py