KyanChen commited on
Commit
59975a9
·
1 Parent(s): b53c1e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -25,6 +25,13 @@ def infer(img1, img2):
25
 
26
 
27
  with gr.Blocks() as demo:
 
 
 
 
 
 
 
28
  with gr.Row():
29
  input_0 = gr.Image(label='Input Image1')
30
  input_1 = gr.Image(label='Input Image2')
@@ -36,7 +43,13 @@ with gr.Blocks() as demo:
36
  img1_files = glob.glob('samples/A/*.png')
37
  img2_files = [f.replace('A', 'B') for f in img1_files]
38
  input_files = [[x, y] for x, y in zip(img1_files, img2_files)]
39
- gr.Examples(input_files, fn=infer, inputs=[input_0, input_1], outputs=[output_gt], cache_examples=True)
 
 
 
 
 
 
40
 
41
  if __name__ == "__main__":
42
- demo.launch()
 
25
 
26
 
27
  with gr.Blocks() as demo:
28
+ gr.Markdown(
29
+ """
30
+ # [Time Travelling Pixels: Bitemporal Features Integration with Foundation Model for Remote Sensing Image Change Detection](https://arxiv.org/abs/2312.16202)
31
+ """)
32
+ # a empty row
33
+ gr.Row()
34
+
35
  with gr.Row():
36
  input_0 = gr.Image(label='Input Image1')
37
  input_1 = gr.Image(label='Input Image2')
 
43
  img1_files = glob.glob('samples/A/*.png')
44
  img2_files = [f.replace('A', 'B') for f in img1_files]
45
  input_files = [[x, y] for x, y in zip(img1_files, img2_files)]
46
+ gr.Examples(input_files, fn=infer, inputs=[input_0, input_1], outputs=[output_gt], cache_examples=False)
47
+ gr.Markdown(
48
+ """
49
+ This is the demo of ["Time Travelling Pixels: Bitemporal Features Integration with Foundation Model for Remote Sensing Image Change Detection"](https://arxiv.org/abs/2312.16202). Seeing [Github](https://github.com/KyanChen/TTP) for more information!
50
+ """)
51
+ # a empty row
52
+ gr.Row()
53
 
54
  if __name__ == "__main__":
55
+ demo.launch()