ImageSafetyClassifierBase<T>
Base Classes · AiDotNet.Safety.Image
Abstract base class for image safety classifiers.
Inheritance: ModelBase<T, Vector<T>, Vector<T>> → SafetyModuleBase<T> → ImageSafetyModuleBase<T> → ImageSafetyClassifierBase<T>
Implements: IImageSafetyClassifier<T>
For Beginners
This base class provides common code for all image safety classifiers. Each classifier type extends this and adds its own way of detecting harmful content in images.
How It Works
Provides shared infrastructure for image safety classifiers including threshold configuration. Concrete implementations provide the actual classification algorithm (CLIP, ViT, scene graph, ensemble).
Methods
| Method | Summary |
|---|---|
IReadOnlyDictionary<SafetyCategory, double> GetCategoryScores(Tensor<T> image) |