vision_unlearning.metrics.image
Classes
Based only on the image itself |
|
Based only on the image itself |
|
Race classification using Hugging Face model: |
|
Based only on the image itself |
|
Based only on the image itself |
Module Contents
- class vision_unlearning.metrics.image.MetricImage(/, **data: Any)[source]
Bases:
vision_unlearning.metrics.base.Metric,abc.ABCBased only on the image itself e.g., image quality, painting style
- class vision_unlearning.metrics.image.MetricPaintingStyle(/, **data: Any)[source]
Bases:
MetricImageBased only on the image itself e.g., image quality, painting style
- metrics: List[Literal['is_desired_style', 'desired_style_confidence']] = []
- desired_style: str
- top_k: int = 5
- model_path: str
- device: torch.device | str | int | None = 'cuda'
- _pipeline: transformers.pipelines.image_classification.ImageClassificationPipeline | None = None
- class vision_unlearning.metrics.image.MetricRace(/, **data: Any)[source]
Bases:
MetricImageRace classification using Hugging Face model: syntheticbot/clip-face-attribute-classifier
Requires the following additional dependencies: * tf_keras = “~2.19.0” * tensorrt = “~10.13.2” * blinker = “~1.9.0”
- class vision_unlearning.metrics.image.MetricGender(/, **data: Any)[source]
Bases:
MetricImageBased only on the image itself e.g., image quality, painting style
- device: torch.device | str | int | None = 'cpu'
- _model_name: str = 'prithivMLmods/Realistic-Gender-Classification'
- _id2label
- _model: Any
- _processor: Any
- class vision_unlearning.metrics.image.MetricQuality(/, **data: Any)[source]
Bases:
MetricImageBased only on the image itself e.g., image quality, painting style