graph LR
Model_Loaders["Model Loaders"]
Codec_Orchestrator["Codec Orchestrator"]
High_Level_Codec_Operations["High-Level Codec Operations"]
Core_Codec_Logic["Core Codec Logic"]
Bitstream_I_O_Handlers["Bitstream I/O Handlers"]
Codec_Orchestrator -- "invokes" --> Model_Loaders
Codec_Orchestrator -- "calls" --> High_Level_Codec_Operations
High_Level_Codec_Operations -- "delegates to" --> Core_Codec_Logic
Core_Codec_Logic -- "uses" --> Bitstream_I_O_Handlers
The Model Zoo & Codec Utilities subsystem provides convenient access to pre-trained compression models and general utilities for encoding and decoding data using these models.
This component is responsible for providing access to and loading pre-trained deep learning models for image and video compression. It handles generic model loading and key remapping, serving as the entry point for different model types within the compressai.zoo.
Related Classes/Methods:
compressai.zoo.image:1-9999compressai.zoo.image_vbr:1-9999compressai.zoo.video:1-9999compressai.zoo.pretrained:1-9999
Serves as the primary command-line interface (CLI) entry point for the codec utilities. It parses user arguments, determines the required operation (encode/decode), and orchestrates the loading of the appropriate model and the subsequent execution of high-level codec operations.
Related Classes/Methods:
Offers simplified, high-level interfaces for initiating the overall encoding and decoding processes. This component abstracts away the lower-level details of the compression pipeline, providing a clean entry point for the Codec Orchestrator.
Related Classes/Methods:
Encapsulates the fundamental steps of the compression and decompression algorithms. This includes managing headers, preparing data for model inference, interacting with the loaded models, and handling the core algorithmic flow.
Related Classes/Methods:
Manages the low-level reading from and writing to files of the actual compressed bitstream data (the "body" of the compressed file). This component ensures efficient and correct handling of the binary output/input.
Related Classes/Methods: