hocherie commited on
Commit
dfc3164
1 Parent(s): ca01e50

added more examples

Browse files
app.py CHANGED
@@ -116,6 +116,8 @@ def run(input_img):
116
  rgb_prediction = one_hot_argmax_to_rgb(prediction, 6).squeeze(0).permute(1, 2, 0).cpu().long().numpy()
117
  valid = res['valid_bev'].squeeze(0)[..., :-1]
118
  rgb_prediction[~valid.cpu().numpy()] = 255
 
 
119
 
120
  plot_images([image, rgb_prediction], titles=["Input Image", "Prediction"], pad=2, adaptive=True)
121
 
@@ -123,8 +125,11 @@ def run(input_img):
123
 
124
 
125
  examples = [
126
- ["examples/219538346289766_undistorted.jpg"],
127
- ["examples/812412413010936_undistorted.jpg"],
 
 
 
128
  ]
129
 
130
  demo = gr.Interface(
 
116
  rgb_prediction = one_hot_argmax_to_rgb(prediction, 6).squeeze(0).permute(1, 2, 0).cpu().long().numpy()
117
  valid = res['valid_bev'].squeeze(0)[..., :-1]
118
  rgb_prediction[~valid.cpu().numpy()] = 255
119
+
120
+ # TODO: add legend here
121
 
122
  plot_images([image, rgb_prediction], titles=["Input Image", "Prediction"], pad=2, adaptive=True)
123
 
 
125
 
126
 
127
  examples = [
128
+ ["examples/left_crossing.jpg"],
129
+ ["examples/crossing.jpg"]
130
+ ["examples/two_roads.jpg"],
131
+ ["examples/night_road.jpg"],
132
+ ["examples/night_crossing.jpg"],
133
  ]
134
 
135
  demo = gr.Interface(
examples/{219538346289766_undistorted.jpg → crossing.jpg} RENAMED
File without changes
examples/{812412413010936_undistorted.jpg → left_crossing.jpg} RENAMED
File without changes
examples/night_crossing.jpg ADDED

Git LFS Details

  • SHA256: 08c2a7abb103a83a099599e8da4126a956784854412da92e81e3d791a55e034b
  • Pointer size: 130 Bytes
  • Size of remote file: 49.6 kB
examples/night_road.jpg ADDED

Git LFS Details

  • SHA256: d097121e96cc190076ce4cb1ad0f1318370d061733e0e26f5677a6df576d2af3
  • Pointer size: 130 Bytes
  • Size of remote file: 43 kB
examples/two_roads.jpg ADDED

Git LFS Details

  • SHA256: 72e0486eb388690c5dd91ab0a1ae89b683affcad7a6a4a0b595d611c03676260
  • Pointer size: 130 Bytes
  • Size of remote file: 88.5 kB