xichenhku commited on
Commit
196cdd9
1 Parent(s): 70ae62c

add guidelines

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -267,10 +267,14 @@ with gr.Blocks() as demo:
267
  scale = gr.Slider(label="Guidance Scale", minimum=0.1, maximum=30.0, value=4.5, step=0.1)
268
  seed = gr.Slider(label="Seed", minimum=-1, maximum=999999999, step=1, value=-1)
269
  enable_shape_control = gr.Checkbox(label='Enable Shape Control', value=False)
270
- gr.Markdown(" Higher guidance-scale makes higher fidelity, while lower guidance-scale leads to more harmonized blending.")
 
 
 
 
271
 
272
  gr.Markdown("# Upload / Select Images for the Background (left) and Reference Object (right)")
273
- gr.Markdown("### Your could draw coarse masks on the background to indicate the desired location and shape.")
274
  gr.Markdown("### <u>Do not forget</u> to annotate the target object on the reference image.")
275
  with gr.Row():
276
  base = gr.Image(label="Background", source="upload", tool="sketch", type="pil", height=512, brush_color='#FFFFFF', mask_opacity=0.5)
 
267
  scale = gr.Slider(label="Guidance Scale", minimum=0.1, maximum=30.0, value=4.5, step=0.1)
268
  seed = gr.Slider(label="Seed", minimum=-1, maximum=999999999, step=1, value=-1)
269
  enable_shape_control = gr.Checkbox(label='Enable Shape Control', value=False)
270
+ gr.Markdown("### Guidelines")
271
+ gr.Markdown(" Higher guidance-scale makes higher fidelity, while lower one makes more harmonized blending.")
272
+ gr.Markdown(" Enable shape control means the generation results would consider user-drawn masks; otherwise it \
273
+ considers the location and size to adjust automatically.")
274
+ gr.Markdown(" Users should annotate the mask of the target object, too coarse mask would lead to bad generation.")
275
 
276
  gr.Markdown("# Upload / Select Images for the Background (left) and Reference Object (right)")
277
+ gr.Markdown("### You could draw coarse masks on the background to indicate the desired location and shape.")
278
  gr.Markdown("### <u>Do not forget</u> to annotate the target object on the reference image.")
279
  with gr.Row():
280
  base = gr.Image(label="Background", source="upload", tool="sketch", type="pil", height=512, brush_color='#FFFFFF', mask_opacity=0.5)