nemo_curator.tasks.image
nemo_curator.tasks.image
Module Contents
Classes
Data
API
Bases: Task
Task for processing batches of images. Images are stored as a list of ImageObject instances, each containing the path to the image and associated metadata.
Number of images in this batch.
Validate the task data.
Represents a single image with metadata.
Aesthetic quality score as float
Image embedding vector as numpy array
Raw image pixel data as numpy array (H, W, C) in RGB format
Unique identifier for the image
Path to the image file on disk
Additional metadata associated with the image
NSFW probability score as float
Bases: Task[T_ImageData]
Single-sample image task. data is an ImageTaskData (or subclass).
Task data for image processing.
Convert to dictionary for JSON serialization.
Path objects are left as-is; callers should use default=str when passing to json.dumps to handle Path → str conversion.