Frame Degradation Simulator - dcomp-leris/CGSynth GitHub Wiki
Script:
frame_gen/degradation/frame_degradation_simulator.py
- Compression artifacts (JPEG-like)
- Macroblock loss (randomized corruption/shift/noise)
- Resolution down/upscale
- Frame freeze
- Motion blur
- Color banding
- Quantization noise
python frame_gen/degradation/frame_degradation_simulator.py \
--input_dir path/to/input_frames \
--output_dir path/to/output_frames_degraded \
--severity 0.5 \
--seed 123 \
--effect_types all \
--generate_video yes \
--fps 30 \
--codec libx264
-
--severity
[0.0–1.0]: global intensity scaling -
--effect_types
: one or more ofnetwork
,rendering
,all
- Output frames:
%04d.png
in--output_dir
- If
--generate_video yes
, an MP4 is created viaframe_gen/tools/video_utils.py:create_video_from_frames()
- Degradation events can be time-varying with ramp-up/decay and randomized durations.
- Use
--seed
for reproducibility of event sequences.