Model card: the half-size figures per backend, and what the GFPGAN file is
Browse files
README.md
CHANGED
|
@@ -78,8 +78,10 @@ float32. Nothing else in the graph changes. onnxruntime folds the casts into
|
|
| 78 |
ordinary float32 weights when it builds the session, so all arithmetic is
|
| 79 |
still float32; what is lost is the rounding of each weight to 11 significant
|
| 80 |
bits. Measured against the float32 files over ten real photographs, the
|
| 81 |
-
outputs agree to 59–69 dB PSNR
|
| 82 |
-
levels
|
|
|
|
|
|
|
| 83 |
|
| 84 |
## Where each file comes from
|
| 85 |
|
|
@@ -116,9 +118,11 @@ source code in the GFPGAN repository, and two of them carry non-commercial
|
|
| 116 |
terms: StyleGAN2 code, modified from rosinality's stylegan2-pytorch, whose
|
| 117 |
upstream (NVlabs/stylegan2) is under the NVIDIA licence reproduced there,
|
| 118 |
including its section 3.3 use limitation; and code "largely modified from"
|
| 119 |
-
DFDNet, under CC BY-NC-SA 4.0.
|
| 120 |
-
|
| 121 |
-
|
|
|
|
|
|
|
| 122 |
version of the architecture that does not require its customised CUDA
|
| 123 |
extensions. The full text is included so the terms can be read as they are
|
| 124 |
written rather than as summarised here.
|
|
|
|
| 78 |
ordinary float32 weights when it builds the session, so all arithmetic is
|
| 79 |
still float32; what is lost is the rounding of each weight to 11 significant
|
| 80 |
bits. Measured against the float32 files over ten real photographs, the
|
| 81 |
+
outputs agree to 59–69 dB PSNR on onnxruntime's CPU backend, with no pixel
|
| 82 |
+
more than 3 of 255 levels apart, and to 59–67 dB in Chromium on
|
| 83 |
+
onnxruntime-web's WebGPU and WASM backends, with at most 5 of 255. The
|
| 84 |
+
download is half the size.
|
| 85 |
|
| 86 |
## Where each file comes from
|
| 87 |
|
|
|
|
| 118 |
terms: StyleGAN2 code, modified from rosinality's stylegan2-pytorch, whose
|
| 119 |
upstream (NVlabs/stylegan2) is under the NVIDIA licence reproduced there,
|
| 120 |
including its section 3.3 use limitation; and code "largely modified from"
|
| 121 |
+
DFDNet, under CC BY-NC-SA 4.0. `gfpgan_1.4_w16.onnx` contains no source
|
| 122 |
+
code: it is the trained GFPGAN v1.4 weights and an ONNX graph of the network
|
| 123 |
+
they belong to, `GFPGANv1Clean`, whose generator follows the StyleGAN2
|
| 124 |
+
architecture that the listed StyleGAN2 code implements. Read the full terms
|
| 125 |
+
before relying on this file for commercial use. GFPGAN's README separately offers a "clean"
|
| 126 |
version of the architecture that does not require its customised CUDA
|
| 127 |
extensions. The full text is included so the terms can be read as they are
|
| 128 |
written rather than as summarised here.
|