Phips commited on
Commit
8a392f9
1 Parent(s): c1951fb

Update with pre-cached examples since full RRDBNet models take such a long time to run

Browse files
Files changed (45) hide show
  1. .gitattributes +14 -0
  2. app.py +5 -5
  3. examples/.~lock.log.csv# +1 -0
  4. examples/log.csv +5 -1
  5. gfpgan/weights/detection_Resnet50_Final.pth +3 -0
  6. gfpgan/weights/parsing_parsenet.pth +3 -0
  7. gradio_cached_examples/19/Upscaled Image/tmp17i5yqbx.jpg +3 -0
  8. gradio_cached_examples/19/Upscaled Image/tmp3nlptesj.jpg +0 -0
  9. gradio_cached_examples/19/Upscaled Image/tmp3oot0xo9.jpg +3 -0
  10. gradio_cached_examples/19/Upscaled Image/tmp5wowrqc0.jpg +0 -0
  11. gradio_cached_examples/19/Upscaled Image/tmp6bnilt__.jpg +0 -0
  12. gradio_cached_examples/19/Upscaled Image/tmp6pnxmkws.jpg +3 -0
  13. gradio_cached_examples/19/Upscaled Image/tmp7bvza6fx.jpg +3 -0
  14. gradio_cached_examples/19/Upscaled Image/tmp8t91fpz6.jpg +0 -0
  15. gradio_cached_examples/19/Upscaled Image/tmp929e5kdm.jpg +3 -0
  16. gradio_cached_examples/19/Upscaled Image/tmpb30gf49n.jpg +0 -0
  17. gradio_cached_examples/19/Upscaled Image/tmpbob4qx78.jpg +0 -0
  18. gradio_cached_examples/19/Upscaled Image/tmpgo2g6hdg.jpg +0 -0
  19. gradio_cached_examples/19/Upscaled Image/tmpktxhiigh.jpg +0 -0
  20. gradio_cached_examples/19/Upscaled Image/tmpnyjf4w4n.jpg +0 -0
  21. gradio_cached_examples/19/Upscaled Image/tmpq0hc4ipm.jpg +0 -0
  22. gradio_cached_examples/19/Upscaled Image/tmpqdhesfnm.jpg +0 -0
  23. gradio_cached_examples/19/Upscaled Image/tmpqrd3y6rd.jpg +3 -0
  24. gradio_cached_examples/19/Upscaled Image/tmpr_roc0dd.jpg +0 -0
  25. gradio_cached_examples/19/Upscaled Image/tmprf_oaxoz.jpg +3 -0
  26. gradio_cached_examples/19/log.csv +20 -0
  27. output_7d37_j6ygu_90squ.jpg +0 -0
  28. output_9vp5vv6vogpa05gn.jpg +0 -0
  29. output__sxt57c9c872oy1v.jpg +0 -0
  30. output_a02v99x9ix0i6ozr.jpg +0 -0
  31. output_at07dtq2ajcjldj5.jpg +0 -0
  32. output_b3vpnyfl_uwugm6n.jpg +0 -0
  33. output_bm36s4ggwx2k82x0.jpg +3 -0
  34. output_evfrhtisk4vof9pi.jpg +3 -0
  35. output_fhiqabqrjruwpvx7.jpg +3 -0
  36. output_gddfuo008ns5z1ox.jpg +0 -0
  37. output_kyvgocfdnpxrj_dk.jpg +3 -0
  38. output_lqu5665v0fluw2yp.jpg +0 -0
  39. output_m1ftnic5p7e_6swz.jpg +0 -0
  40. output_nyyp6ry3uy3tb6u6.jpg +0 -0
  41. output_ph4i1u_wtyuhzpnk.jpg +0 -0
  42. output_qbcb0o1ecak3b369.jpg +3 -0
  43. output_ryxr6tqz7kjt9mzl.jpg +0 -0
  44. output_xt7il5ywmrjuk1lo.jpg +3 -0
  45. output_xvvan4id_n6vszvm.jpg +3 -0
.gitattributes CHANGED
@@ -32,3 +32,17 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  *.zip filter=lfs diff=lfs merge=lfs -text
33
  *.zst filter=lfs diff=lfs merge=lfs -text
34
  *tfevents* filter=lfs diff=lfs merge=lfs -text
35
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmp17i5yqbx.jpg filter=lfs diff=lfs merge=lfs -text
36
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmp3oot0xo9.jpg filter=lfs diff=lfs merge=lfs -text
37
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmp6pnxmkws.jpg filter=lfs diff=lfs merge=lfs -text
38
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmp7bvza6fx.jpg filter=lfs diff=lfs merge=lfs -text
39
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmp929e5kdm.jpg filter=lfs diff=lfs merge=lfs -text
40
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmpqrd3y6rd.jpg filter=lfs diff=lfs merge=lfs -text
41
+ gradio_cached_examples/19/Upscaled[[:space:]]Image/tmprf_oaxoz.jpg filter=lfs diff=lfs merge=lfs -text
42
+ output_bm36s4ggwx2k82x0.jpg filter=lfs diff=lfs merge=lfs -text
43
+ output_evfrhtisk4vof9pi.jpg filter=lfs diff=lfs merge=lfs -text
44
+ output_fhiqabqrjruwpvx7.jpg filter=lfs diff=lfs merge=lfs -text
45
+ output_kyvgocfdnpxrj_dk.jpg filter=lfs diff=lfs merge=lfs -text
46
+ output_qbcb0o1ecak3b369.jpg filter=lfs diff=lfs merge=lfs -text
47
+ output_xt7il5ywmrjuk1lo.jpg filter=lfs diff=lfs merge=lfs -text
48
+ output_xvvan4id_n6vszvm.jpg filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -68,7 +68,7 @@ def realesrgan(img, model_name, face_enhance):
68
  model_path=model_path,
69
  dni_weight=None,
70
  model=model,
71
- tile=0,
72
  tile_pad=10,
73
  pre_pad=10,
74
  half=False,
@@ -101,7 +101,7 @@ def realesrgan(img, model_name, face_enhance):
101
  else:
102
  # Save restored image and return it to the output Image component
103
  if img_mode == 'RGBA': # RGBA images should be saved in png format
104
- extension = 'png'
105
  else:
106
  extension = 'jpg'
107
 
@@ -188,10 +188,10 @@ def main():
188
  face_enhance = gr.Checkbox(label="Face Enhancement using GFPGAN (Doesn't work for anime images)",value=False, show_label=True)
189
 
190
  with gr.Group():
191
- input_image = gr.Image(label="Source Image", type="pil", image_mode="RGBA")
192
  input_image_properties = gr.Textbox(label="Image Properties - Demo will throw error if input image has either width or height > 1000. Output download is jpg for smaller size. Use models locally to circument these limits.", max_lines=1)
193
  with gr.Group():
194
- output_image = gr.Image(label="Upscaled Image", type="pil", image_mode="RGBA", interactive=False)
195
  output_image_properties = gr.Textbox(label="Image Properties", max_lines=1)
196
  with gr.Row():
197
  upscale_btn = gr.Button("Upscale")
@@ -209,7 +209,7 @@ def main():
209
  4xLSDIRCompactR3 - upscale a degraded photo 4x, fast (SRVGGNetCompact) (too strong, best used for interpolation like 4xLSDIRCompactN (or C) 75% 4xLSDIRCompactR3 25% to add little degradation handling to the previous one)
210
 
211
  *RRDBNet models - in general more powerful than SRVGGNetCompact, but very slow in this demo*
212
- 4xNomos8kSC - use for upscaling photos 4x
213
  4xHFA2k - use for upscaling anime images 4x
214
  4xLSDIR - upscale a good quality photo (no degradation) 4x
215
  4xLSDIRplusN - upscale a good quality photo (no degradation) 4x
 
68
  model_path=model_path,
69
  dni_weight=None,
70
  model=model,
71
+ tile=128,
72
  tile_pad=10,
73
  pre_pad=10,
74
  half=False,
 
101
  else:
102
  # Save restored image and return it to the output Image component
103
  if img_mode == 'RGBA': # RGBA images should be saved in png format
104
+ extension = 'jpg'
105
  else:
106
  extension = 'jpg'
107
 
 
188
  face_enhance = gr.Checkbox(label="Face Enhancement using GFPGAN (Doesn't work for anime images)",value=False, show_label=True)
189
 
190
  with gr.Group():
191
+ input_image = gr.Image(label="Source Image", type="pil", image_mode="RGB")
192
  input_image_properties = gr.Textbox(label="Image Properties - Demo will throw error if input image has either width or height > 1000. Output download is jpg for smaller size. Use models locally to circument these limits.", max_lines=1)
193
  with gr.Group():
194
+ output_image = gr.Image(label="Upscaled Image", type="pil", image_mode="RGB", interactive=False)
195
  output_image_properties = gr.Textbox(label="Image Properties", max_lines=1)
196
  with gr.Row():
197
  upscale_btn = gr.Button("Upscale")
 
209
  4xLSDIRCompactR3 - upscale a degraded photo 4x, fast (SRVGGNetCompact) (too strong, best used for interpolation like 4xLSDIRCompactN (or C) 75% 4xLSDIRCompactR3 25% to add little degradation handling to the previous one)
210
 
211
  *RRDBNet models - in general more powerful than SRVGGNetCompact, but very slow in this demo*
212
+ 4xNomos8kSC - use for upscaling photos 4x or can also be tried out on anime
213
  4xHFA2k - use for upscaling anime images 4x
214
  4xLSDIR - upscale a good quality photo (no degradation) 4x
215
  4xLSDIRplusN - upscale a good quality photo (no degradation) 4x
examples/.~lock.log.csv# ADDED
@@ -0,0 +1 @@
 
 
1
+ ,phips,phips-MS-7C02,20.05.2023 17:05,file:///home/phips/.config/libreoffice/4;
examples/log.csv CHANGED
@@ -8,9 +8,13 @@ buddy.jpg,4xLSDIRCompactC3,true
8
  seeufer.jpg,4xNomos8kSC,
9
  seeufer.jpg,4xLSDIR,
10
  seeufer.jpg,4xLSDIRplusN,
 
11
  bibli.png,4xLSDIR,
12
  bibli.png,4xLSDIRplusN,
 
13
  palme.jpg,4xNomos8kSC,
14
  zimmer.jpg,4xNomos8kSC,
15
  text.png,2xParimgCompact,
16
- jujutsukaisen.png,4xHFA2k,
 
 
 
8
  seeufer.jpg,4xNomos8kSC,
9
  seeufer.jpg,4xLSDIR,
10
  seeufer.jpg,4xLSDIRplusN,
11
+ seeufer.jpg,4xLSDIRCompactN,
12
  bibli.png,4xLSDIR,
13
  bibli.png,4xLSDIRplusN,
14
+ bibli.png,4xLSDIRplusC,
15
  palme.jpg,4xNomos8kSC,
16
  zimmer.jpg,4xNomos8kSC,
17
  text.png,2xParimgCompact,
18
+ text.png,4xNomos8kSC,
19
+ jujutsukaisen.png,4xHFA2k,
20
+ jujutsukaisen.png,4xNomos8kSC,
gfpgan/weights/detection_Resnet50_Final.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d1de9c2944f2ccddca5f5e010ea5ae64a39845a86311af6fdf30841b0a5a16d
3
+ size 109497761
gfpgan/weights/parsing_parsenet.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3d558d8d0e42c20224f13cf5a29c79eba2d59913419f945545d8cf7b72920de2
3
+ size 85331193
gradio_cached_examples/19/Upscaled Image/tmp17i5yqbx.jpg ADDED

Git LFS Details

  • SHA256: 4620158d63325777a720ace75af07d6d663e039a1280c3c4b697bc546fe5a4f1
  • Pointer size: 132 Bytes
  • Size of remote file: 5.85 MB
gradio_cached_examples/19/Upscaled Image/tmp3nlptesj.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmp3oot0xo9.jpg ADDED

Git LFS Details

  • SHA256: 06daf66683acda0d0c5598e8b850595061f447f690740f8214d9eb2fd968f45d
  • Pointer size: 132 Bytes
  • Size of remote file: 5.09 MB
gradio_cached_examples/19/Upscaled Image/tmp5wowrqc0.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmp6bnilt__.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmp6pnxmkws.jpg ADDED

Git LFS Details

  • SHA256: a97590574fd5d84ae0e0794312fb6e1abd51ca7b4eae048753d747d9a8838574
  • Pointer size: 132 Bytes
  • Size of remote file: 5.18 MB
gradio_cached_examples/19/Upscaled Image/tmp7bvza6fx.jpg ADDED

Git LFS Details

  • SHA256: f02ab24e582d65e28f6bc133c5700bc47af93236ff4cfdffb5ea5591c834c0b6
  • Pointer size: 132 Bytes
  • Size of remote file: 5.15 MB
gradio_cached_examples/19/Upscaled Image/tmp8t91fpz6.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmp929e5kdm.jpg ADDED

Git LFS Details

  • SHA256: fc6eb3938918e16e3625f8a319a63f4e8ac9947db9a9b5ddcca46eca91e20d5e
  • Pointer size: 132 Bytes
  • Size of remote file: 4.27 MB
gradio_cached_examples/19/Upscaled Image/tmpb30gf49n.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpbob4qx78.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpgo2g6hdg.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpktxhiigh.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpnyjf4w4n.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpq0hc4ipm.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpqdhesfnm.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmpqrd3y6rd.jpg ADDED

Git LFS Details

  • SHA256: 25bc267b2d23cc5087fbdd562aadccdfd885f9486c8efc2c6852e356dbfc39a5
  • Pointer size: 132 Bytes
  • Size of remote file: 3.63 MB
gradio_cached_examples/19/Upscaled Image/tmpr_roc0dd.jpg ADDED
gradio_cached_examples/19/Upscaled Image/tmprf_oaxoz.jpg ADDED

Git LFS Details

  • SHA256: df5d7721fe7bbee1a9761cfdc411dbbdb29880637106d76edbbe4b2428a7c090
  • Pointer size: 132 Bytes
  • Size of remote file: 2.55 MB
gradio_cached_examples/19/log.csv ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Upscaled Image,flag,username,timestamp
2
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpnyjf4w4n.jpg,,,2023-05-20 17:17:24.319003
3
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpbob4qx78.jpg,,,2023-05-20 17:17:28.005010
4
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpq0hc4ipm.jpg,,,2023-05-20 17:17:28.165779
5
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpktxhiigh.jpg,,,2023-05-20 17:17:33.929820
6
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp8t91fpz6.jpg,,,2023-05-20 17:17:39.621650
7
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpb30gf49n.jpg,,,2023-05-20 17:17:41.704880
8
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp929e5kdm.jpg,,,2023-05-20 17:17:59.922206
9
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp7bvza6fx.jpg,,,2023-05-20 17:18:18.099180
10
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp17i5yqbx.jpg,,,2023-05-20 17:18:36.399811
11
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp6pnxmkws.jpg,,,2023-05-20 17:18:37.721725
12
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp3nlptesj.jpg,,,2023-05-20 17:18:40.077069
13
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp5wowrqc0.jpg,,,2023-05-20 17:18:42.436296
14
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp6bnilt__.jpg,,,2023-05-20 17:18:44.800915
15
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmp3oot0xo9.jpg,,,2023-05-20 17:19:03.288224
16
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpqrd3y6rd.jpg,,,2023-05-20 17:19:21.779185
17
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpqdhesfnm.jpg,,,2023-05-20 17:19:22.504818
18
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmprf_oaxoz.jpg,,,2023-05-20 17:19:39.086371
19
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpr_roc0dd.jpg,,,2023-05-20 17:19:42.846990
20
+ /home/phips/Downloads/gradio_cached_examples/19/Upscaled Image/tmpgo2g6hdg.jpg,,,2023-05-20 17:19:46.603347
output_7d37_j6ygu_90squ.jpg ADDED
output_9vp5vv6vogpa05gn.jpg ADDED
output__sxt57c9c872oy1v.jpg ADDED
output_a02v99x9ix0i6ozr.jpg ADDED
output_at07dtq2ajcjldj5.jpg ADDED
output_b3vpnyfl_uwugm6n.jpg ADDED
output_bm36s4ggwx2k82x0.jpg ADDED

Git LFS Details

  • SHA256: fc6eb3938918e16e3625f8a319a63f4e8ac9947db9a9b5ddcca46eca91e20d5e
  • Pointer size: 132 Bytes
  • Size of remote file: 4.27 MB
output_evfrhtisk4vof9pi.jpg ADDED

Git LFS Details

  • SHA256: f02ab24e582d65e28f6bc133c5700bc47af93236ff4cfdffb5ea5591c834c0b6
  • Pointer size: 132 Bytes
  • Size of remote file: 5.15 MB
output_fhiqabqrjruwpvx7.jpg ADDED

Git LFS Details

  • SHA256: df5d7721fe7bbee1a9761cfdc411dbbdb29880637106d76edbbe4b2428a7c090
  • Pointer size: 132 Bytes
  • Size of remote file: 2.55 MB
output_gddfuo008ns5z1ox.jpg ADDED
output_kyvgocfdnpxrj_dk.jpg ADDED

Git LFS Details

  • SHA256: a97590574fd5d84ae0e0794312fb6e1abd51ca7b4eae048753d747d9a8838574
  • Pointer size: 132 Bytes
  • Size of remote file: 5.18 MB
output_lqu5665v0fluw2yp.jpg ADDED
output_m1ftnic5p7e_6swz.jpg ADDED
output_nyyp6ry3uy3tb6u6.jpg ADDED
output_ph4i1u_wtyuhzpnk.jpg ADDED
output_qbcb0o1ecak3b369.jpg ADDED

Git LFS Details

  • SHA256: 4620158d63325777a720ace75af07d6d663e039a1280c3c4b697bc546fe5a4f1
  • Pointer size: 132 Bytes
  • Size of remote file: 5.85 MB
output_ryxr6tqz7kjt9mzl.jpg ADDED
output_xt7il5ywmrjuk1lo.jpg ADDED

Git LFS Details

  • SHA256: 06daf66683acda0d0c5598e8b850595061f447f690740f8214d9eb2fd968f45d
  • Pointer size: 132 Bytes
  • Size of remote file: 5.09 MB
output_xvvan4id_n6vszvm.jpg ADDED

Git LFS Details

  • SHA256: 25bc267b2d23cc5087fbdd562aadccdfd885f9486c8efc2c6852e356dbfc39a5
  • Pointer size: 132 Bytes
  • Size of remote file: 3.63 MB