orronai commited on
Commit
8bf0e8e
·
1 Parent(s): 92bf603

feat: add examples

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. app.py +3 -3
  2. example_outputs/.DS_Store +3 -0
  3. example_outputs/cat/.DS_Store +3 -0
  4. example_outputs/cat/bear/flux_iterations=0.png +3 -0
  5. example_outputs/cat/bear/flux_iterations=1.png +3 -0
  6. example_outputs/cat/bear/flux_iterations=2.png +3 -0
  7. example_outputs/cat/bear/flux_iterations=3.png +3 -0
  8. example_outputs/cat/bear/flux_iterations=4.png +3 -0
  9. example_outputs/cat/bear/flux_iterations=5.png +3 -0
  10. example_outputs/cat/bear/flux_iterations=6.png +3 -0
  11. example_outputs/cat/bear/flux_iterations=7.png +3 -0
  12. example_outputs/cat/puppy/sd3_iterations=0.png +3 -0
  13. example_outputs/cat/puppy/sd3_iterations=1.png +3 -0
  14. example_outputs/cat/puppy/sd3_iterations=2.png +3 -0
  15. example_outputs/cat/puppy/sd3_iterations=3.png +3 -0
  16. example_outputs/cat/puppy/sd3_iterations=4.png +3 -0
  17. example_outputs/cat/puppy/sd3_iterations=5.png +3 -0
  18. example_outputs/cat/puppy/sd3_iterations=6.png +3 -0
  19. example_outputs/cat_fridge/origami/sd3_iterations=0.png +3 -0
  20. example_outputs/cat_fridge/origami/sd3_iterations=1.png +3 -0
  21. example_outputs/cat_fridge/origami/sd3_iterations=2.png +3 -0
  22. example_outputs/cat_fridge/origami/sd3_iterations=3.png +3 -0
  23. example_outputs/cat_fridge/origami/sd3_iterations=4.png +3 -0
  24. example_outputs/cat_fridge/origami/sd3_iterations=5.png +3 -0
  25. example_outputs/cat_fridge/origami/sd3_iterations=6.png +3 -0
  26. example_outputs/cat_fridge/origami/sd3_iterations=7.png +3 -0
  27. example_outputs/cat_fridge/origami/sd3_iterations=8.png +3 -0
  28. example_outputs/corgi_walking/guinea_pig/flux_iterations=0.png +3 -0
  29. example_outputs/corgi_walking/guinea_pig/flux_iterations=1.png +3 -0
  30. example_outputs/corgi_walking/guinea_pig/flux_iterations=2.png +3 -0
  31. example_outputs/corgi_walking/guinea_pig/flux_iterations=3.png +3 -0
  32. example_outputs/corgi_walking/guinea_pig/flux_iterations=4.png +3 -0
  33. example_outputs/corgi_walking/guinea_pig/flux_iterations=5.png +3 -0
  34. example_outputs/corgi_walking/guinea_pig/flux_iterations=6.png +3 -0
  35. example_outputs/corgi_walking/guinea_pig/flux_iterations=7.png +3 -0
  36. example_outputs/corgi_walking/rabbit/sd3_iterations=0.png +3 -0
  37. example_outputs/corgi_walking/rabbit/sd3_iterations=1.png +3 -0
  38. example_outputs/corgi_walking/rabbit/sd3_iterations=2.png +3 -0
  39. example_outputs/corgi_walking/rabbit/sd3_iterations=3.png +3 -0
  40. example_outputs/corgi_walking/rabbit/sd3_iterations=4.png +3 -0
  41. example_outputs/corgi_walking/rabbit/sd3_iterations=5.png +3 -0
  42. example_outputs/corgi_walking/rabbit/sd3_iterations=6.png +3 -0
  43. example_outputs/corgi_walking/rabbit/sd3_iterations=7.png +3 -0
  44. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=0.png +3 -0
  45. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=1.png +3 -0
  46. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=2.png +3 -0
  47. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=3.png +3 -0
  48. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=4.png +3 -0
  49. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=5.png +3 -0
  50. example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=6.png +3 -0
app.py CHANGED
@@ -14,7 +14,7 @@ from utils.sd3 import sd3_editing
14
 
15
  device = "cuda" if torch.cuda.is_available() else "cpu"
16
 
17
- # pipe_sd3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
18
  pipe_flux = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
19
 
20
 
@@ -88,8 +88,8 @@ def FlowOpt_run(
88
 
89
  if model_type_val == 'FLUX':
90
  pipe = pipe_flux.to(device)
91
- # elif model_type_val == 'SD3':
92
- # pipe = pipe_sd3.to(device)
93
  else:
94
  raise NotImplementedError(f"Model type {model_type_val} not implemented")
95
 
 
14
 
15
  device = "cuda" if torch.cuda.is_available() else "cpu"
16
 
17
+ pipe_sd3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
18
  pipe_flux = FluxPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.float16, token=os.getenv('HF_ACCESS_TOK'))
19
 
20
 
 
88
 
89
  if model_type_val == 'FLUX':
90
  pipe = pipe_flux.to(device)
91
+ elif model_type_val == 'SD3':
92
+ pipe = pipe_sd3.to(device)
93
  else:
94
  raise NotImplementedError(f"Model type {model_type_val} not implemented")
95
 
example_outputs/.DS_Store ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:591a9ab3cc4d59aa617132303385bca06b806efd04843ab683191d87c1bdb752
3
+ size 6148
example_outputs/cat/.DS_Store ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f6bf8c1be6414f8314c996ddbc0115263d3f60fb53f524aacf8277dc9f3c23f
3
+ size 6148
example_outputs/cat/bear/flux_iterations=0.png ADDED

Git LFS Details

  • SHA256: 793f9c3ac09fa560f7182abe445ed9889a4139fb1a050a18868487f9c0c57158
  • Pointer size: 132 Bytes
  • Size of remote file: 1.35 MB
example_outputs/cat/bear/flux_iterations=1.png ADDED

Git LFS Details

  • SHA256: 92f5184b37d62acc4a41b163e3775a64d13d35bff41c6df56d08e4377c37fb64
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
example_outputs/cat/bear/flux_iterations=2.png ADDED

Git LFS Details

  • SHA256: 81228669509b7b53a1542fcff716e77693dcf2289ce2dc35dc23d49b4c68431c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
example_outputs/cat/bear/flux_iterations=3.png ADDED

Git LFS Details

  • SHA256: c6a0fe5ec3bb4e8cb6583e27c0514a648a40f187a8d49cf856d52f4109791c0e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.37 MB
example_outputs/cat/bear/flux_iterations=4.png ADDED

Git LFS Details

  • SHA256: b4708971aa33264d4058a36188ccf8aaf4e44bd538abd89cc25105f28f7a56d5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
example_outputs/cat/bear/flux_iterations=5.png ADDED

Git LFS Details

  • SHA256: 884ef4adec1cb6870411d917190d35bb79a97f51fef17a30254ae1c3e439d6c0
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
example_outputs/cat/bear/flux_iterations=6.png ADDED

Git LFS Details

  • SHA256: 50e50fd86a38203c02191277ca82e619d029e4f5733cbc8ae1cc1ad12555732d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.4 MB
example_outputs/cat/bear/flux_iterations=7.png ADDED

Git LFS Details

  • SHA256: 13d038b60ef68c15fcd602b4712d61d956069cfeae6b8948fa697d7bf02b2e58
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
example_outputs/cat/puppy/sd3_iterations=0.png ADDED

Git LFS Details

  • SHA256: e48e04581f448f2571935b06e02c65b3035241a6340334e5a68da9e0a67ddd86
  • Pointer size: 132 Bytes
  • Size of remote file: 1.47 MB
example_outputs/cat/puppy/sd3_iterations=1.png ADDED

Git LFS Details

  • SHA256: e2dce9a3fd9a74e1f5d5d066e7fe32eb4a18895d44ac3cc03340d01ea9e8d627
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat/puppy/sd3_iterations=2.png ADDED

Git LFS Details

  • SHA256: 0d87b9ecc00f809179abbe5e04b228bed313105f23777e62aa0b239e7bcec2cd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat/puppy/sd3_iterations=3.png ADDED

Git LFS Details

  • SHA256: 5edc1729b3a21a260a798f53f157727e991ac0ac1fea79d967bfc25351012a8b
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat/puppy/sd3_iterations=4.png ADDED

Git LFS Details

  • SHA256: 523969cd18dc12348b089240c32a443029aeb1fe5748f951ce0b836ccb151bc3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat/puppy/sd3_iterations=5.png ADDED

Git LFS Details

  • SHA256: 7a11cb6cd386a98cdade814a8a5c563a90d83ae0d006fc4727688566e8e30158
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat/puppy/sd3_iterations=6.png ADDED

Git LFS Details

  • SHA256: e17eced31a2f4a057c1636b830a3591534772734a16ec82727aac0a0e90426e3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/cat_fridge/origami/sd3_iterations=0.png ADDED

Git LFS Details

  • SHA256: 7e619da623b9f930adcb87844337d2a6ed6768fd1d4814d99325346b516684ef
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=1.png ADDED

Git LFS Details

  • SHA256: 3687ae9889c6d866c5ec7b703f1af5b577e54a0cb80f3d3765ccffd4acb5e910
  • Pointer size: 132 Bytes
  • Size of remote file: 1.3 MB
example_outputs/cat_fridge/origami/sd3_iterations=2.png ADDED

Git LFS Details

  • SHA256: c75467d6f6b0f6e926e72683263df08d3395ff588ffe847a64a253bb1f25dd69
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=3.png ADDED

Git LFS Details

  • SHA256: d19d3a8e7869cfb221d23edfc45d09bfa8b00a1910f34e73544d95cfba5d21c9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=4.png ADDED

Git LFS Details

  • SHA256: 4d30811b13af7a76fc6453646c4955903cde03d7e9f20e28ac6c5c35f09fb1d3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=5.png ADDED

Git LFS Details

  • SHA256: 346a610c3e1f0552bf8c45ccdd4a631dd3e6108aef7d4cd8ef61bf6b8e7bf0d2
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=6.png ADDED

Git LFS Details

  • SHA256: 7d82e451a66f6825b04623a8a137c56fc4a2c2e49651e7ebc57a25ba8d1e5d0f
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=7.png ADDED

Git LFS Details

  • SHA256: 43b20f3c1e1f47e39a00c89326af8295592a6da572cbe72745e2b34b5eff4776
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/cat_fridge/origami/sd3_iterations=8.png ADDED

Git LFS Details

  • SHA256: 7d56cd1945c054fcd3538b2b36cb1eaae62c38a746232f0a0a7564fd732b218c
  • Pointer size: 132 Bytes
  • Size of remote file: 1.29 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=0.png ADDED

Git LFS Details

  • SHA256: 0534c2ed69900b181e1214c86d7616ba40b4ebae5aafd821e569c5df7bad3b36
  • Pointer size: 132 Bytes
  • Size of remote file: 1.32 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=1.png ADDED

Git LFS Details

  • SHA256: cdd267e8d51d77d5addbc82c9667382a5f128ff4f9c50c453c60ee98cc6d05b8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.34 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=2.png ADDED

Git LFS Details

  • SHA256: 53bd46eba89611e18092ce93ac5d85c6a3d1c7fd299bc9bc68c519da5d2ed493
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=3.png ADDED

Git LFS Details

  • SHA256: d49cdabfab5d832c6e9f845cabc8829cd7762576b630d46a359cdc18fffc8791
  • Pointer size: 132 Bytes
  • Size of remote file: 1.38 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=4.png ADDED

Git LFS Details

  • SHA256: 240b8b633819786078269500fcc4b34dbf9f03066564bb296513f5a38eaf6f30
  • Pointer size: 132 Bytes
  • Size of remote file: 1.39 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=5.png ADDED

Git LFS Details

  • SHA256: f30f10ce65e475abde4394678ded4f6bd03062bed86371eab0916035c8f87516
  • Pointer size: 132 Bytes
  • Size of remote file: 1.4 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=6.png ADDED

Git LFS Details

  • SHA256: 93a5aa41fc655f14d70794e14d2e169a2fb290284308e439f796e11bfc03911d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.41 MB
example_outputs/corgi_walking/guinea_pig/flux_iterations=7.png ADDED

Git LFS Details

  • SHA256: 51ebea3ff4d80accdb292b33fa61fb601a1beaba48d1331dda08170ceb4a4294
  • Pointer size: 132 Bytes
  • Size of remote file: 1.42 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=0.png ADDED

Git LFS Details

  • SHA256: dc77ad4480ff5a682ac5cbb7acb498f4eaa2620416d93d7bff1467329511a99a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.49 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=1.png ADDED

Git LFS Details

  • SHA256: eb440afaad4a24109dda7c0353afb3304fafa2ac2993b0e1c735ed78e4f4e7a5
  • Pointer size: 132 Bytes
  • Size of remote file: 1.49 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=2.png ADDED

Git LFS Details

  • SHA256: eca836d330a066716108d39c43aac983573d446bc33b2d687a062d99b460fb5a
  • Pointer size: 132 Bytes
  • Size of remote file: 1.5 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=3.png ADDED

Git LFS Details

  • SHA256: 0d3cb51e16c49caec684dfde407534c269a7c7b25af4d6e69393d8694045ba3e
  • Pointer size: 132 Bytes
  • Size of remote file: 1.49 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=4.png ADDED

Git LFS Details

  • SHA256: 7d27502aa4c4b1511f3813513c9b7c9ebe4bb76fe7f3425fd2a7db4e1127bdf9
  • Pointer size: 132 Bytes
  • Size of remote file: 1.49 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=5.png ADDED

Git LFS Details

  • SHA256: 1ac29fbd82d02222eea2138eae059f11dc069c5f93f5fad13486c01c34c99142
  • Pointer size: 132 Bytes
  • Size of remote file: 1.5 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=6.png ADDED

Git LFS Details

  • SHA256: 9ffe83cb29985f271d9195888a28e6af6bc6ec987ebe3f16dd77d8692000b513
  • Pointer size: 132 Bytes
  • Size of remote file: 1.51 MB
example_outputs/corgi_walking/rabbit/sd3_iterations=7.png ADDED

Git LFS Details

  • SHA256: 7b507986ee5bb8fc9a355a3714ecc54c68a766424c6fdadbec57999722f55fc3
  • Pointer size: 132 Bytes
  • Size of remote file: 1.51 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=0.png ADDED

Git LFS Details

  • SHA256: 3bcd2be953201ae711ec78189e5ab3d8103a95b8973d2fd6fb068b3f74c54dd4
  • Pointer size: 132 Bytes
  • Size of remote file: 1.55 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=1.png ADDED

Git LFS Details

  • SHA256: 09d0bcfa9f9e474186b662f2acc4989ba0118df08f20268405de349623b6d189
  • Pointer size: 132 Bytes
  • Size of remote file: 1.56 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=2.png ADDED

Git LFS Details

  • SHA256: d832b4001c45687b25689d7e40caf98700fad320c1b200a1f4563d8bfd60fddd
  • Pointer size: 132 Bytes
  • Size of remote file: 1.57 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=3.png ADDED

Git LFS Details

  • SHA256: 963d1ab3d60b131791bb97d196bc6e5ce830ba0b9667d28b06afc7f1bceaf2ad
  • Pointer size: 132 Bytes
  • Size of remote file: 1.57 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=4.png ADDED

Git LFS Details

  • SHA256: e840063af278952324a6b5579d2d15bacdc83735d0f2cbba5bae0640233f78e7
  • Pointer size: 132 Bytes
  • Size of remote file: 1.58 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=5.png ADDED

Git LFS Details

  • SHA256: 007880a50f4df6809b2701b541de42b15cb251c81ebc7f8e89ceb96636c731aa
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB
example_outputs/cow_grass2/colorful_toy_bricks/flux_iterations=6.png ADDED

Git LFS Details

  • SHA256: f5601935fb874b7b0129c5af55f2da750702ad5d012c6587869c740e1949a7d8
  • Pointer size: 132 Bytes
  • Size of remote file: 1.59 MB