nemo_curator.stages.image.filters.aesthetic_filter
nemo_curator.stages.image.filters.aesthetic_filter
Module Contents
Classes
API
Dataclass
Bases: BaseFilterStage
Stage for filtering out images based on aesthetic scores.
This class processes image batches through an aesthetic scoring model to generate aesthetic scores for each image. Images with scores below the threshold will be filtered out.
model_dir
model_inference_batch_size
name
num_gpus_per_worker
score_threshold
verbose
Process an image batch to filter by aesthetic score threshold.
Parameters:
task
ImageBatch containing list of ImageObject instances with aesthetic scores
Returns: ImageBatch
ImageBatch with filtered images that meet the aesthetic score threshold.
Initialize the aesthetic filtering model.
Download aesthetic model weights from HF