nami0342 commited on
Commit
6f12b4e
ยท
1 Parent(s): 6031bfb

Remove Upload human image preprocessing logic

Browse files
Files changed (2) hide show
  1. .gitignore +5 -0
  2. app.py +5 -5
.gitignore CHANGED
@@ -8,6 +8,9 @@
8
  # Model checkpoints
9
  # ckpt/
10
 
 
 
 
11
  # Example images
12
  example/cloth/*.png
13
  example/human/*.png
@@ -32,3 +35,5 @@ var/
32
  *.egg-info/
33
  .installed.cfg
34
  *.egg
 
 
 
8
  # Model checkpoints
9
  # ckpt/
10
 
11
+ #MAC
12
+ *.DS_Store
13
+
14
  # Example images
15
  example/cloth/*.png
16
  example/human/*.png
 
35
  *.egg-info/
36
  .installed.cfg
37
  *.egg
38
+ *..DS_Store
39
+
app.py CHANGED
@@ -511,11 +511,11 @@ with image_blocks as demo:
511
  # is_checked = gr.Number(value=True)
512
 
513
  # ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์‹œ ์ „์ฒ˜๋ฆฌ
514
- imgs.upload(
515
- fn=preprocess_image,
516
- inputs=imgs,
517
- outputs=imgs, # ์ „์ฒ˜๋ฆฌ๋œ ์ด๋ฏธ์ง€๋ฅผ ImageEditor์— ๋‹ค์‹œ ํ‘œ์‹œ
518
- )
519
 
520
 
521
  # ๋Œ€์ƒ ์ด๋ฏธ์ง€: URL ์ž…๋ ฅ ์ฒ˜๋ฆฌ
 
511
  # is_checked = gr.Number(value=True)
512
 
513
  # ์ด๋ฏธ์ง€ ์—…๋กœ๋“œ ์‹œ ์ „์ฒ˜๋ฆฌ
514
+ # imgs.upload(
515
+ # fn=preprocess_image,
516
+ # inputs=imgs,
517
+ # outputs=imgs, # ์ „์ฒ˜๋ฆฌ๋œ ์ด๋ฏธ์ง€๋ฅผ ImageEditor์— ๋‹ค์‹œ ํ‘œ์‹œ
518
+ # )
519
 
520
 
521
  # ๋Œ€์ƒ ์ด๋ฏธ์ง€: URL ์ž…๋ ฅ ์ฒ˜๋ฆฌ