MinhNH232331M commited on
Commit
24cc92d
·
verified ·
1 Parent(s): e440059

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -33,3 +33,9 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ demo_images/compare_color_fix.png filter=lfs diff=lfs merge=lfs -text
37
+ demo_images/compare_latent_transplant.png filter=lfs diff=lfs merge=lfs -text
38
+ demo_images/input_320x480.jpg filter=lfs diff=lfs merge=lfs -text
39
+ demo_images/upscaled_4x_default.png filter=lfs diff=lfs merge=lfs -text
40
+ demo_images/upscaled_4x_no_color_fix.png filter=lfs diff=lfs merge=lfs -text
41
+ demo_images/upscaled_4x_transplant_off.png filter=lfs diff=lfs merge=lfs -text
.vscode/settings.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "python-envs.defaultEnvManager": "ms-python.python:conda",
3
+ "python-envs.defaultPackageManager": "ms-python.python:conda"
4
+ }
README.md CHANGED
@@ -158,6 +158,30 @@ after 1 pass and +14.8% after 2; the latent mean drift is ~0.1 sigma per pass on
158
  -0.02, RGB means <= 0.9/255) — every drift mode above is created by the flow
159
  UNet or by the correction stack itself.
160
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  ### Nyquist / frequency-band analysis
162
 
163
  Band bookkeeping, with frequencies written as fractions of each grid's
 
158
  -0.02, RGB means <= 0.9/255) — every drift mode above is created by the flow
159
  UNet or by the correction stack itself.
160
 
161
+ ### Visual demo
162
+
163
+ One-image walkthrough of the two knobs (`demo_images/`): a 320x480 portrait
164
+ upscaled 2 passes (4x) at seed 42.
165
+
166
+ **Color fix** — both runs at `transplant_strength = 0` so the output
167
+ structure matches the original and only color differs. Uncorrected, the skin
168
+ drifts visibly pale/green (R −3.1, G −0.5, B −2.8 /255 mean cast; mean
169
+ chroma +3.5%); with the fix, means pin to within 0.2/255 and chroma to +0.1%:
170
+
171
+ ![color fix comparison](demo_images/compare_color_fix.png)
172
+
173
+ **Latent transplant** — both runs at `color_fix_strength = 1`. Strength 1
174
+ nearly doubles measured sharpness (mean abs Laplacian 1.40 -> 2.71) at the
175
+ cost of input fidelity (PSNR to input 43.1 -> 40.8 dB) — the
176
+ fidelity/realism tradeoff, visible in the lashes and iris detail:
177
+
178
+ ![latent transplant comparison](demo_images/compare_latent_transplant.png)
179
+
180
+ Inputs and full outputs for all three settings are in `demo_images/`. Color
181
+ metrics for this demo were measured through the gradio demo's lossy webp
182
+ output, which inflates the residual percentiles slightly; the tables above
183
+ use the lossless notebook protocol.
184
+
185
  ### Nyquist / frequency-band analysis
186
 
187
  Band bookkeeping, with frequencies written as fractions of each grid's
__pycache__/flow_upscaler_pipeline.cpython-313.pyc ADDED
Binary file (23.6 kB). View file
 
__pycache__/upscaler_unet.cpython-313.pyc ADDED
Binary file (28.5 kB). View file
 
demo_images/compare_color_fix.png ADDED

Git LFS Details

  • SHA256: 91c5a5a7b9f8b3e9ebbc9c7c60c1e590b1470283ffb0b7cc8e1e3d7e4ab6b565
  • Pointer size: 131 Bytes
  • Size of remote file: 964 kB
demo_images/compare_latent_transplant.png ADDED

Git LFS Details

  • SHA256: 9f6e661d024371b901f7bd06a749c2e8d38b2030eeeb0f8f7a3add986da3f342
  • Pointer size: 131 Bytes
  • Size of remote file: 195 kB
demo_images/input_320x480.jpg ADDED

Git LFS Details

  • SHA256: a5572476ad375127265d4794cd43dd24ad11310684c89bd789003e297af53349
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
demo_images/upscaled_4x_default.png ADDED

Git LFS Details

  • SHA256: 2affaad2173a4e8a99da8e0cffc4d49187883ddbf5106263462a7cb6c9d22f5c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.13 MB
demo_images/upscaled_4x_no_color_fix.png ADDED

Git LFS Details

  • SHA256: f3f8061bb8126e906710001a817acf4e7952fb315760f74450a10a049982fe63
  • Pointer size: 132 Bytes
  • Size of remote file: 1.02 MB
demo_images/upscaled_4x_transplant_off.png ADDED

Git LFS Details

  • SHA256: 429ce2c4a83c9170bad5a459c72a6f309aa5f80e95d068c63d4786d88325d9ce
  • Pointer size: 132 Bytes
  • Size of remote file: 1.04 MB