benbaker76 commited on
Commit
6dddbe7
·
verified ·
1 Parent(s): 0e03ff0

Card: BasicVSR_x4, the first video model

Browse files
Files changed (1) hide show
  1. README.md +18 -0
README.md CHANGED
@@ -54,6 +54,24 @@ link for the terms, which for some models restrict commercial use.
54
  | `UltraMix_Smooth_x4` | x4 | 69.9 MB | 36.5 MB | - | ESRGAN | [Kim2091/UltraSharp](https://huggingface.co/Kim2091/UltraSharp) |
55
  | `UltraSharp_x4` | x4 | 69.9 MB | 36.5 MB | - | ESRGAN | [Kim2091/UltraSharp](https://huggingface.co/Kim2091/UltraSharp) |
56
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  ## Using a file directly
58
 
59
  ```
 
54
  | `UltraMix_Smooth_x4` | x4 | 69.9 MB | 36.5 MB | - | ESRGAN | [Kim2091/UltraSharp](https://huggingface.co/Kim2091/UltraSharp) |
55
  | `UltraSharp_x4` | x4 | 69.9 MB | 36.5 MB | - | ESRGAN | [Kim2091/UltraSharp](https://huggingface.co/Kim2091/UltraSharp) |
56
 
57
+ ### Video
58
+
59
+ A video model looks at the frames on either side as well as the one it is upscaling, so it
60
+ comes as three graphs, each run a frame at a time, with the caller carrying the hidden state
61
+ between them. upscale's `VideoUpscaler` does this. It keeps memory flat however long the film
62
+ is, and resets at scene cuts.
63
+
64
+ | Model | Scale | Files (fp32) | Architecture | Original weights |
65
+ | --- | --- | --- | --- | --- |
66
+ | `BasicVSR_x4` | x4 | 26.2 MB: `BasicVSR_x4.flow.onnx` (SPyNet optical flow), `BasicVSR_x4.backward.onnx`, `BasicVSR_x4.onnx` (forward pass and output) | BasicVSR | [OpenMMLab mmagic](https://github.com/open-mmlab/mmagic/tree/main/configs/basicvsr), REDS, Apache-2.0 |
67
+
68
+ - `flow(frame, neighbour) -> flow`
69
+ - `backward(frame, state, flow) -> state_out`, run from the last frame to the first
70
+ - `forward(frame, state, flow, backward) -> state_out, image`
71
+
72
+ At the start of a shot, state and flow are zeros. Run like that, the three graphs reproduce
73
+ the original model exactly. Only float32 is published: float16 is badly wrong on WebGPU.
74
+
75
  ## Using a file directly
76
 
77
  ```