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/
|
127 |
-
["examples/
|
|
|
|
|
|
|
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
|
examples/night_road.jpg
ADDED
Git LFS Details
|
examples/two_roads.jpg
ADDED
Git LFS Details
|