BertChristiaens commited on
Commit
161c8b5
1 Parent(s): 1af0054

add content

Browse files
.gitattributes CHANGED
@@ -37,3 +37,7 @@ content/inpainting_after.png filter=lfs diff=lfs merge=lfs -text
37
  content/inpainting_before.jpg filter=lfs diff=lfs merge=lfs -text
38
  content/inpainting_sidebar.png filter=lfs diff=lfs merge=lfs -text
39
  content/regen_example.png filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
37
  content/inpainting_before.jpg filter=lfs diff=lfs merge=lfs -text
38
  content/inpainting_sidebar.png filter=lfs diff=lfs merge=lfs -text
39
  content/regen_example.png filter=lfs diff=lfs merge=lfs -text
40
+ content/example_0.png filter=lfs diff=lfs merge=lfs -text
41
+ content/example_1.jpg filter=lfs diff=lfs merge=lfs -text
42
+ content/output_0.png filter=lfs diff=lfs merge=lfs -text
43
+ content/output_1.png filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -294,15 +294,30 @@ def main():
294
  )
295
  st.write("### Testing images")
296
  st.write("If you don't have any pictures close, you can use one of these images to test the model:")
 
297
  st.session_state['example_image_0'] = Image.open("content/example_0.png")
298
  st.session_state['example_image_1'] = Image.open("content/example_1.jpg")
299
- st.image(st.session_state['example_image_0'], caption="Example image 1", use_column_width=True)
300
- if st.button("Use example 1"):
301
- move_image('example_image_0', 'initial_image', remove_state=True, rerun=True)
302
-
303
- st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True)
304
- if st.button("Use example 2"):
305
- move_image('example_image_1', 'initial_image', remove_state=True, rerun=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
306
  else:
307
  make_prompt_row()
308
 
 
294
  )
295
  st.write("### Testing images")
296
  st.write("If you don't have any pictures close, you can use one of these images to test the model:")
297
+
298
  st.session_state['example_image_0'] = Image.open("content/example_0.png")
299
  st.session_state['example_image_1'] = Image.open("content/example_1.jpg")
300
+
301
+ col_im_0, col_im_1 = st.columns(2)
302
+
303
+ with col_im_0:
304
+ st.image(st.session_state['example_image_0'], caption="Example image 1", use_column_width=True)
305
+ if st.button("Use example 1"):
306
+ move_image('example_image_0', 'input_image', remove_state=True, rerun=False)
307
+ move_image('example_image_0', 'initial_image', remove_state=True, rerun=True)
308
+ with col_im_1:
309
+ st.image(st.session_state['example_image_1'], caption="Example image 2", use_column_width=True)
310
+ if st.button("Use example 2"):
311
+ move_image('example_image_1', 'input_image', remove_state=True, rerun=False)
312
+ move_image('example_image_1', 'initial_image', remove_state=True, rerun=True)
313
+
314
+ st.write("## Generated examples")
315
+ col_ex_0, col_ex_1 = st.columns(2)
316
+ with col_ex_0:
317
+ st.image(Image.open("content/output_1.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True)
318
+ with col_ex_1:
319
+ st.image(Image.open("content/output_0.png"), caption="Generated example 1, regenerating certain objects in the room", use_column_width=True)
320
+
321
  else:
322
  make_prompt_row()
323
 
content/example_0.png CHANGED

Git LFS Details

  • SHA256: 4b52db6611c93adc9c8be52ac139db6aab727f47cd6992e9cbd334e46ebc7d4e
  • Pointer size: 131 Bytes
  • Size of remote file: 268 kB
content/example_1.jpg CHANGED

Git LFS Details

  • SHA256: beb51bbadcb782a4c742109ef8f4c1a27d99d1e8ecb68e5237b241d3d88a797e
  • Pointer size: 130 Bytes
  • Size of remote file: 87.5 kB
content/output_0.png ADDED

Git LFS Details

  • SHA256: 45133c135683dd1f77e49ac316e3ba8d4a52ab6a4cabb169482e536708c03d89
  • Pointer size: 132 Bytes
  • Size of remote file: 1.86 MB
content/output_1.png ADDED

Git LFS Details

  • SHA256: 03b06016d5eff15152d49903c7d810a484e5b783c70c2bb0e5c3b1619a00ec86
  • Pointer size: 132 Bytes
  • Size of remote file: 1.95 MB