Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 2 KB

model-licenses.md

File metadata and controls

33 lines (27 loc) · 2 KB

Optional Swin2SR 2×

No weights are bundled or committed. Download requires an explicit app confirmation; offline import must match the same hash. The runtime is optional.

  • Authors: Marcos V. Conde et al., Swin2SR.
  • Upstream 2× model card: Apache-2.0.
  • Code license: Apache-2.0.
  • ONNX conversion by Xenova explicitly derives from that upstream model.
  • Revision: 71e28a83cfb61f5dc95bafdeebf2815167914f2b.
  • File: onnx/model.onnx, 54,428,699 bytes.
  • SHA-256: 6dde3fe2440543ccae7c40d175609f83c18aeaa3d8456745c4329ef97ae744bd.

The manifest matches the published Hugging Face LFS hash and the separately downloaded development artifact. Input pixel_values is float32 RGB NCHW [0,1]. Symmetric padding makes dimensions multiples of eight. Output reconstruction must be finite [1,3,2H,2W], then is cropped to exact unpadded 2x dimensions. The CPU provider uses two intra-op threads, one inter-op thread and no CPU arena. Verified bytes are read again before session creation. No pickle or arbitrary model path is executed by the app. Integrity checks are not an ONNX sandbox.

Initial ceiling: 65,536 pixels and 512 per side after full-resolution geometry/crop, checked even for reduced previews. Larger inputs need future tiling. RGB uses a white matte; alpha resizes separately, then the matte is removed. Very low-alpha edges can amplify model differences; inspect transparency before export.

Tests generate a tiny nearest-neighbor graph solely for runtime contract tests; it is never presented as enhancement. scripts/benchmark.py --model PATH tests the approved model separately. Tests never download weights.

Weight redistribution requires preserving Apache-2.0 notices, checking upstream NOTICE and documenting conversion. This project distributes neither upstream nor converted weights.