Frame Degradation Simulator - dcomp-leris/CGSynth GitHub Wiki

Frame Degradation Simulator

Script:

  • frame_gen/degradation/frame_degradation_simulator.py

Methods

  • Compression artifacts (JPEG-like)
  • Macroblock loss (randomized corruption/shift/noise)
  • Resolution down/upscale
  • Frame freeze
  • Motion blur
  • Color banding
  • Quantization noise

CLI

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

Important parameters

  • --severity [0.0–1.0]: global intensity scaling
  • --effect_types: one or more of network, rendering, all
  • Output frames: %04d.png in --output_dir
  • If --generate_video yes, an MP4 is created via frame_gen/tools/video_utils.py:create_video_from_frames()

Profiles

  • Degradation events can be time-varying with ramp-up/decay and randomized durations.
  • Use --seed for reproducibility of event sequences.
⚠️ **GitHub.com Fallback** ⚠️