Spaces:
Runtime error
Runtime error
Amirhosein
commited on
Commit
·
5738ea0
1
Parent(s):
d0ecda7
fix tuple evalueation
Browse files- axis_finder.py +2 -1
axis_finder.py
CHANGED
|
@@ -3,6 +3,7 @@ from Axis import AxisFinder
|
|
| 3 |
import cv2
|
| 4 |
import config
|
| 5 |
import time
|
|
|
|
| 6 |
|
| 7 |
def run_axis_finder(total_execution_time):
|
| 8 |
maps_list = []
|
|
@@ -123,7 +124,7 @@ def run_axis_finder(total_execution_time):
|
|
| 123 |
|
| 124 |
def gradio_inference(access_ratio,start_point,carbon_weight):
|
| 125 |
config.ACCESS_RATIO = float(access_ratio)
|
| 126 |
-
config.ARCH_FIRST_INPUT =
|
| 127 |
config.A_CARBON_WEIGHT = int(carbon_weight)
|
| 128 |
run_axis_finder(0)
|
| 129 |
image = cv2.imread(f'outputs/collision_map.bmp')
|
|
|
|
| 3 |
import cv2
|
| 4 |
import config
|
| 5 |
import time
|
| 6 |
+
from ast import literal_eval as make_tuple
|
| 7 |
|
| 8 |
def run_axis_finder(total_execution_time):
|
| 9 |
maps_list = []
|
|
|
|
| 124 |
|
| 125 |
def gradio_inference(access_ratio,start_point,carbon_weight):
|
| 126 |
config.ACCESS_RATIO = float(access_ratio)
|
| 127 |
+
config.ARCH_FIRST_INPUT = make_tuple(start_point)
|
| 128 |
config.A_CARBON_WEIGHT = int(carbon_weight)
|
| 129 |
run_axis_finder(0)
|
| 130 |
image = cv2.imread(f'outputs/collision_map.bmp')
|