nemo_curator.stages.image.filters.base
nemo_curator.stages.image.filters.base
Module Contents
Classes
Data
API
Dataclass
Bases: ProcessingStage[ImageBatch, ImageBatch]
Base class for image filtering stages.
This class provides a base class for image filtering stages.
model_dir
model_inference_batch_size
name
num_gpus_per_worker
score_threshold
verbose
Process an image batch to generate scores and filter by threshold.
Parameters:
task
ImageBatch containing list of ImageObject instances with pre-computed embeddings
Returns: ImageBatch
ImageBatch with filtered images that have scores below the threshold
Initialize the base filter stage.
Yields a generator of model inputs for the next batch.
Parameters:
task
The ImageBatch to process.