Wanli
commited on
Commit
·
866ff8d
1
Parent(s):
69ad792
change links of table from 'master' to 'main' (#169)
Browse files- benchmark/color_table.svg +90 -90
- benchmark/generate_table.py +2 -2
benchmark/color_table.svg
CHANGED
|
|
benchmark/generate_table.py
CHANGED
@@ -202,7 +202,7 @@ def render_table(header, body, save_path, cfg, cmap_type):
|
|
202 |
loc="upper left")
|
203 |
# set style of header, each url of hardware
|
204 |
ori_height = table[0, 0].get_height()
|
205 |
-
url_base = 'https://github.com/opencv/opencv_zoo/tree/
|
206 |
hw_urls = [f"{url_base}{x['name'].lower().replace(' ', '-')}" for x in cfg["Devices"]]
|
207 |
hw_urls = [""] * 3 + hw_urls
|
208 |
for col in range(len(header)):
|
@@ -211,7 +211,7 @@ def render_table(header, body, save_path, cfg, cmap_type):
|
|
211 |
cell.set_url(hw_urls[col])
|
212 |
cell.set_height(ori_height * 2.2)
|
213 |
|
214 |
-
url_base = 'https://github.com/opencv/opencv_zoo/tree/
|
215 |
model_urls = [f"{url_base}{x['folder']}" for x in cfg["Models"]]
|
216 |
model_urls = [""] + model_urls
|
217 |
for row in range(len(body) + 1):
|
|
|
202 |
loc="upper left")
|
203 |
# set style of header, each url of hardware
|
204 |
ori_height = table[0, 0].get_height()
|
205 |
+
url_base = 'https://github.com/opencv/opencv_zoo/tree/main/benchmark#'
|
206 |
hw_urls = [f"{url_base}{x['name'].lower().replace(' ', '-')}" for x in cfg["Devices"]]
|
207 |
hw_urls = [""] * 3 + hw_urls
|
208 |
for col in range(len(header)):
|
|
|
211 |
cell.set_url(hw_urls[col])
|
212 |
cell.set_height(ori_height * 2.2)
|
213 |
|
214 |
+
url_base = 'https://github.com/opencv/opencv_zoo/tree/main/models/'
|
215 |
model_urls = [f"{url_base}{x['folder']}" for x in cfg["Models"]]
|
216 |
model_urls = [""] + model_urls
|
217 |
for row in range(len(body) + 1):
|