Skip to main content

Module onnx_sr_session

Module onnx_sr_session 

Source
Expand description

Shared ONNX Runtime session helper for learned super-resolution tiers (feature vision-onnx).

This mirrors qualia-vision/src/weights/onnx_session.rs exactly, but for the SR tier adapters (cnn_light_session, esrgan_session, swin_session).

  • Without the vision-onnx feature the whole learned path fails closed — probing/inference returns FeatureDisabled and no pixels are ever invented.
  • With vision-onnx, permissive published SR weights (FSRCNN/ESPCN, Real-ESRGAN, SwinIR — see docs/plans/gated-av-jobs-2026.md §2) become drop-in: point a tier adapter at the weight file and it loads an ort::session::Session and runs it.

No unwrap() outside #[cfg(test)].

Structs§

SrSessionInfo
Metadata after a session probe (always available for tests, feature or not).

Enums§

SrSessionError
Errors for the learned SR session layer. Mirrors vision’s OnnxSessionError with an added InvalidParameter for bad request geometry.

Functions§

probe_sr_asset
Probe an SR weight file for a tier.