HivisionIDPhotos / demo /config.py
TheEeeeLin's picture
update retinaface
402b504
raw
history blame contribute delete
624 Bytes
import os
from demo.utils import csv_to_size_list, csv_to_color_list
def load_configuration(root_dir):
size_list_dict_CN = csv_to_size_list(
os.path.join(root_dir, "assets/size_list_CN.csv")
)
size_list_dict_EN = csv_to_size_list(
os.path.join(root_dir, "assets/size_list_EN.csv")
)
color_list_dict_CN = csv_to_color_list(
os.path.join(root_dir, "assets/color_list_CN.csv")
)
color_list_dict_EN = csv_to_color_list(
os.path.join(root_dir, "assets/color_list_EN.csv")
)
return size_list_dict_CN, size_list_dict_EN, color_list_dict_CN, color_list_dict_EN