Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 6.99 KB

File metadata and controls

77 lines (51 loc) · 6.99 KB
graph LR
    Training_Evaluation_Orchestrator["Training & Evaluation Orchestrator"]
    Optimizer_Management["Optimizer Management"]
    Loss_Function_Library["Loss Function Library"]
    Metric_Aggregation_Utility["Metric Aggregation Utility"]
    Training_Evaluation_Orchestrator -- "configures optimizers through" --> Optimizer_Management
    Training_Evaluation_Orchestrator -- "utilizes" --> Loss_Function_Library
    Training_Evaluation_Orchestrator -- "updates" --> Metric_Aggregation_Utility
    Loss_Function_Library -- "provides calculations to" --> Training_Evaluation_Orchestrator
    Metric_Aggregation_Utility -- "provides metrics to" --> Training_Evaluation_Orchestrator
Loading

CodeBoardingDemoContact

Details

The Training & Optimization Engine subsystem is central to CompressAI, providing the necessary framework for training and optimizing compression models. It adheres to the "ML Toolkit/Library with an Evaluation Platform" architectural patterns by modularizing core training logic, optimizer management, and loss function definitions.

Training & Evaluation Orchestrator

This component manages the entire training and evaluation lifecycle. It orchestrates the execution of training and testing epochs, handles model checkpointing, and coordinates the overall flow of the training process. It acts as the primary control unit for model training experiments.

Related Classes/Methods:

Optimizer Management

This component is responsible for the instantiation, configuration, and management of various PyTorch optimizers. It provides standardized methods for creating optimizers for both the main network and any auxiliary components, ensuring consistency and reusability across different training scripts.

Related Classes/Methods:

Loss Function Library

This component defines and implements a collection of loss functions specifically tailored for different data compression models (e.g., point cloud, video). It encapsulates the logic for calculating rate-distortion, reconstruction, and auxiliary losses, providing a flexible and extensible set of objectives for model training.

Related Classes/Methods:

Metric Aggregation Utility

This utility component is designed to accumulate and average numerical metrics over a specified period, typically an epoch. It provides a standardized way to track and summarize model performance statistics, such as loss values, PSNR, or other relevant evaluation metrics.

Related Classes/Methods: