Build vision models.
Keep your focus.
From your first dataset to your next breakthrough.
Classification, detection, and segmentation with the tools you already know.
Python 3.10+ Open source Apache 2.0
One workflow. Every vision task.
Choose what you want to build.
An image in.
A label out.
Build an image classifier with a pretrained CNN or vision transformer. Choose your backbone, define your metrics, and start training.
Explore classificationImageDataModuleYour images, ready for trainingImageClassifierResNet · EfficientNet · ViTAutoTrainerPowered by PyTorch LightningKnow what’s there.
And where it is.
Locate objects with bounding boxes using FCOS or YOLOX. Load COCO-format data and track detection metrics in the same training workflow.
Explore object detectionDetectionDataModuleImages and bounding boxesObjectDetectorFCOS with your choice of backboneAutoTrainerPowered by PyTorch LightningGive every pixel
a purpose.
Assign a class to every pixel with DeepLabV3+ or FCN. Configure segmentation losses and metrics to fit your dataset.
Explore semantic segmentationSegmentationDataModuleImages and semantic masksSemanticSegmentorDeepLabV3+ · FCNAutoTrainerPowered by PyTorch LightningEvery object.
Its own outline.
Combine object detection with per-instance masks. Distinguish individual objects, even when they belong to the same class.
Explore instance segmentationInstanceSegmentationDataModuleImages and per-instance masksInstanceSegmentorDetection with a mask headAutoTrainerPowered by PyTorch LightningLess setup. More experimenting.
A complete classification example, from data to training.
import autotimm as at
# Your data. Your choice of backbone.
data = at.ImageDataModule(
data_dir="./data",
dataset_name="CIFAR10",
num_workers=0,
)
metrics = [at.MetricConfig(
name="accuracy",
backend="torchmetrics",
metric_class="Accuracy",
params={"task": "multiclass"},
stages=["train", "val"],
)]
model = at.ImageClassifier(
backbone="resnet18",
num_classes=10,
metrics=metrics,
)
trainer = at.AutoTrainer(max_epochs=10)
trainer.fit(model, datamodule=data)
Room to go further.
The essentials are connected. The choices stay yours.
Built on a familiar foundation