Skip to content

iVSR model JSON config and enablement#41

Open
sandeshk-intel wants to merge 7 commits into
OpenVisualCloud:masterfrom
sandeshk-intel:feature/sandeshk/model_config_and_enablement_public
Open

iVSR model JSON config and enablement#41
sandeshk-intel wants to merge 7 commits into
OpenVisualCloud:masterfrom
sandeshk-intel:feature/sandeshk/model_config_and_enablement_public

Conversation

@sandeshk-intel

Copy link
Copy Markdown
Collaborator

Introduces a JSON-based model configuration system for the iVSR DNN backend, replacing hardcoded per-model C descriptors with external config files.

Add JSON config files for all supported models (VideoProc, EDSR, CustVSR, TSENet, RIFE, VideoSeal, HDRTVNet-LE) and a README documenting all parameters
Fix Y-plane row-stride bug in unpack_output_window that corrupted output on non-aligned frame widths (720p, 854p)
Flip normalize_input/normalize_output defaults from 1 to 0 — old defaults silently corrupted VideoSeal, EDSR, and VideoProc output
Fix model_color fallback to "RGB" instead of empty string; reorder color-format dispatch so color_format_auto takes precedence over model_color
Inherit out_layout from in_layout when absent from config
Remove redundant chroma copy for SVP/CustVSR models
Set out_precision_depth_derived=false for HDRTVNet-LE and fix normalize_output value in VideoProc config

sandeshk-intel and others added 7 commits June 25, 2026 16:59
Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
… path

- Fix Y-plane row-stride bug in unpack_output_window: use output->width
  instead of unpadded frame width 'fw' as the tensor stride. Fixes
  corrupted output on frames not a multiple of 'align' (e.g., 720p, 854p).
- Flip normalize_input/output defaults from 1 to 0. Most models use raw
  [0,255] I/O; old defaults silently corrupted VideoSeal/EDSR/VideoProc.
- Fix model_color fallback to default to "RGB" instead of an empty string
  when absent, preventing SDK undefined behavior without heap allocation.
- Reorder color-format dispatch so color_format_auto is evaluated before
  model_color, preventing VideoProc/CustVSR auto-detection shadowing.
- Inherit out_layout from in_layout when absent from the JSON config.

Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
Update documentation, fix the VideoProc normalize_output value.
Signed-off-by: sandeshk <sandesh.kumar.s@intel.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants