parokshsaxena commited on
Commit
2ea463e
β€’
1 Parent(s): 6e68a36

reverting to original width & height

Browse files
Files changed (2) hide show
  1. app.py +6 -6
  2. requirements.txt +5 -1
app.py CHANGED
@@ -121,10 +121,10 @@ pipe = TryonPipeline.from_pretrained(
121
  )
122
  pipe.unet_encoder = UNet_Encoder
123
 
124
- WIDTH = 4160 # 768
125
- HEIGHT = 6240 # 1024
126
- POSE_WIDTH = int(WIDTH/8)
127
- POSE_HEIGHT = int(HEIGHT/8)
128
 
129
  @spaces.GPU
130
  def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed):
@@ -292,10 +292,10 @@ with image_blocks as demo:
292
  examples=garm_list_path)
293
  with gr.Column():
294
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
295
- masked_img = gr.Image(label="Masked image output", elem_id="masked-img",show_share_button=False)
296
  with gr.Column():
297
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
298
- image_out = gr.Image(label="Output", elem_id="output-img",show_share_button=False)
299
 
300
 
301
 
 
121
  )
122
  pipe.unet_encoder = UNet_Encoder
123
 
124
+ WIDTH = 768 # 4160 # 768
125
+ HEIGHT = 1024 # 6240 # 1024
126
+ POSE_WIDTH = int(WIDTH/2) # int(WIDTH/8)
127
+ POSE_HEIGHT = int(HEIGHT/2) #int(HEIGHT/8)
128
 
129
  @spaces.GPU
130
  def start_tryon(dict,garm_img,garment_des,is_checked,is_checked_crop,denoise_steps,seed):
 
292
  examples=garm_list_path)
293
  with gr.Column():
294
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
295
+ masked_img = gr.Image(label="Masked image output", elem_id="masked-img", show_share_button=False)
296
  with gr.Column():
297
  # image_out = gr.Image(label="Output", elem_id="output-img", height=400)
298
+ image_out = gr.Image(label="Output", elem_id="output-img", show_share_button=False)
299
 
300
 
301
 
requirements.txt CHANGED
@@ -20,4 +20,8 @@ av
20
  fvcore
21
  cloudpickle
22
  omegaconf
23
- pycocotools
 
 
 
 
 
20
  fvcore
21
  cloudpickle
22
  omegaconf
23
+ pycocotools
24
+
25
+ # For Local
26
+ #gradio==4.24.0
27
+ #spaces==0.28.3