Spaces:
Runtime error
Runtime error
Amirhosein
commited on
Commit
·
d453a84
1
Parent(s):
511d264
input
Browse files- app.py +1 -1
- axis_finder.py +1 -0
app.py
CHANGED
|
@@ -8,7 +8,7 @@ def run_axis_finder(input_str):
|
|
| 8 |
|
| 9 |
demo = gr.Interface(
|
| 10 |
run_axis_finder,
|
| 11 |
-
gr.Textbox(value="""0.
|
| 12 |
Road Access[0.1:0.9], Starting Point(y,x), Carbon Prefix[0:7]
|
| 13 |
Road Access setups the ratio of accessibility for each divided two parts.
|
| 14 |
Starting Point is a tuple of pixel location for the algorithm to start its road construction.
|
|
|
|
| 8 |
|
| 9 |
demo = gr.Interface(
|
| 10 |
run_axis_finder,
|
| 11 |
+
gr.Textbox(value="""0.85 (44,119) 2
|
| 12 |
Road Access[0.1:0.9], Starting Point(y,x), Carbon Prefix[0:7]
|
| 13 |
Road Access setups the ratio of accessibility for each divided two parts.
|
| 14 |
Starting Point is a tuple of pixel location for the algorithm to start its road construction.
|
axis_finder.py
CHANGED
|
@@ -128,6 +128,7 @@ def gradio_inference(access_ratio,start_point,carbon_weight):
|
|
| 128 |
config.A_CARBON_WEIGHT = int(carbon_weight)
|
| 129 |
run_axis_finder(0)
|
| 130 |
image = cv2.imread(f'outputs/collision_map.bmp')
|
|
|
|
| 131 |
return image
|
| 132 |
|
| 133 |
if __name__ == "__main__":
|
|
|
|
| 128 |
config.A_CARBON_WEIGHT = int(carbon_weight)
|
| 129 |
run_axis_finder(0)
|
| 130 |
image = cv2.imread(f'outputs/collision_map.bmp')
|
| 131 |
+
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
|
| 132 |
return image
|
| 133 |
|
| 134 |
if __name__ == "__main__":
|