barakmam commited on
Commit
418ccd7
·
2 Parent(s): 6163c61 ae999e6

Merge branch 'main' of https://huggingface.co/spaces/barakmeiri/RNRI

Browse files
Files changed (2) hide show
  1. app.py +6 -6
  2. examples/log.csv +1 -2
app.py CHANGED
@@ -113,7 +113,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
113
  info="Enter your image description ",
114
  show_label=False,
115
  max_lines=1,
116
- placeholder="a cake on a table",
117
  container=False,
118
  )
119
 
@@ -177,7 +177,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
177
  info="Enter your edit prompt",
178
  show_label=False,
179
  max_lines=1,
180
- placeholder="an oreo cake on a table",
181
  container=False,
182
  )
183
 
@@ -194,10 +194,10 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
194
 
195
  gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
196
  """)
197
- input_image.change(set_pipe,
198
- inputs=[input_image, description_prompt, edit_guidance_scale, num_inference_steps,
199
- num_inference_steps, inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
200
- outputs=[inv_state, is_set_text], trigger_mode='once')
201
 
202
  description_prompt.change(set_pipe, inputs=[input_image, description_prompt, edit_guidance_scale,
203
  num_inference_steps,
 
113
  info="Enter your image description ",
114
  show_label=False,
115
  max_lines=1,
116
+ placeholder="Example: a cake on a table",
117
  container=False,
118
  )
119
 
 
177
  info="Enter your edit prompt",
178
  show_label=False,
179
  max_lines=1,
180
+ placeholder="Example: an oreo cake on a table",
181
  container=False,
182
  )
183
 
 
194
 
195
  gr.Markdown(f"""Disclaimer: Performance may be inferior to the reported in the paper due to hardware limitation.
196
  """)
197
+ # input_image.change(set_pipe,
198
+ # inputs=[input_image, description_prompt, edit_guidance_scale, num_inference_steps,
199
+ # num_inference_steps, inversion_max_step, rnri_iterations, rnri_alpha, rnri_lr],
200
+ # outputs=[inv_state, is_set_text], trigger_mode='once')
201
 
202
  description_prompt.change(set_pipe, inputs=[input_image, description_prompt, edit_guidance_scale,
203
  num_inference_steps,
examples/log.csv CHANGED
@@ -1,5 +1,4 @@
1
  input_image,description_prompt,target_prompt
2
- ./images/laptop.jpeg,"A laptop, a cup of coffee, a black pen and a smartphone","A laptop, a cup of milk, a black pen and a smartphone"
3
- ./images/cat2.jpeg,A cat laying next to a glass vase with flowers,A fish laying next to a glass vase with flowers
4
  ./images/lion.jpeg,A lion is sitting in the grass at sunset,A raccoon is sitting in the grass at sunset
 
5
  ./images/kitten.jpeg,A kitten is sitting in a basket on a branch,A lego kitten is sitting in a basket on a branch
 
1
  input_image,description_prompt,target_prompt
 
 
2
  ./images/lion.jpeg,A lion is sitting in the grass at sunset,A raccoon is sitting in the grass at sunset
3
+ ./images/cat2.jpeg,A cat laying next to a glass vase with flowers,A fish laying next to a glass vase with flowers
4
  ./images/kitten.jpeg,A kitten is sitting in a basket on a branch,A lego kitten is sitting in a basket on a branch