How vqassessment/dover works
Main Components
• Data & Input Layer:
– Show the “examplar_data_labels” directory contents and “get_divide_dataset” which indicate the presence of datasets and labels.
• Preprocessing & Data Loading:
– Represent the data handling utilities and dataset modules from “dover/datasets/…”. This module is responsible for reading video files, applying necessary preprocessing, and managing labels.
• Model Core & Inference Engine:
– Illustrate the core model components contained in “dover/models/…” including multiple backbones (conv, swin, xclip, etc.), evaluators, and heads.
• Configuration & Variants:
• Training & Transfer Learning Pipeline:
– Include components for training (training_with_divide.py, transfer_learning.py) that update only the head (or both the head and backbone in full fine-tune mode). Emphasize that this uses dataset-specific labels.
• Evaluation & Scoring:
– Include evaluation modules (evaluate_one_video.py, evaluate_a_set_of_videos.py, default_infer.py) that take processed video data, run through the model, and output scores.
• ONNX Conversion & Deployment:
• Visualization & Auxiliary Tools:
– Note the presence of notebooks (Generate_Divergence_Maps_and_gMAD.ipynb) and demo figures for divergence maps and WandB training curves.
Relationships and Interactions
• Next, a “Model Core” takes the prepared data, splits it into the two quality assessment streams, and computes both aesthetic and technical scores.
• The “Evaluation Module” (driven via scripts like evaluate_one_video.py) then processes these outputs to produce final (normalized) quality metrics.
• For training modes, a similar data path branches into the “Training Pipeline” where weights can be updated (using transfer_learning.py or training_with_divide.py) and then re-integrated into the model.
Architectural Patterns & Design Principles
• A modular, layered architecture is used. Separate directories for datasets, models, and utilities suggest clear separation of concerns.
• The two-branch structure of the model (disentangling aesthetic and technical qualities) should be indicated.
• Extensibility – numerous configuration files and separate modules for evaluation, training, and conversion indicate that the system is built to be adaptable.
• Mention the use of established frameworks (likely PyTorch, ONNX) and external tools (WandB for visualization).