Closed LemurPwned closed 1 day ago
This pull request implements changes to the video sampler configuration and output formatting. The main changes include updating the SaveFormatConfig class, modifying the SamplerConfig class, and adjusting the output path formatting in the sampler.
classDiagram
class SaveFormatConfig {
bool encode_time_b64
bool avoid_dot
bool include_filename
model_validator validate_save_format()
}
class SamplerConfig {
float min_frame_interval_sec
bool keyframes_only
float queue_wait
int start_time_s
int end_time_s
bool precise_seek
bool debug
bool print_stats
dict buffer_config
dict gate_config
dict extractor_config
dict summary_config
int n_workers
SaveFormatConfig save_format
str __str__()
SamplerConfig from_yaml(str file_path)
model_validator validate_start_end_times()
}
Change | Details | Files |
---|---|---|
Refactored and expanded SaveFormatConfig class |
|
video_sampler/config.py |
Updated SamplerConfig class |
|
video_sampler/config.py |
Modified output path formatting in the sampler |
|
video_sampler/sampler.py |
Updated configuration file |
|
configs/hash_base.yaml |
Summary by Sourcery
Add a new SaveFormatConfig class to handle save format configurations, including options for encoding time, avoiding dots, and including filenames. Refactor SamplerConfig to utilize Pydantic's Field for better default value management and validation. Update the format_output_path method to align with the new save format options.
New Features:
Enhancements: