jhj0517 commited on
Commit ·
f2aa528
1
Parent(s): f2a34e7
Add exp output dir
Browse files4 unmodified lines56789103 unmodified lines141516171819202122232425264 unmodified linesPROJECT_ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "..")MODELS_DIR = os.path.join(PROJECT_ROOT_DIR, "models")OUTPUTS_DIR = os.path.join(PROJECT_ROOT_DIR, "outputs")MODEL_CONFIG = os.path.join(PROJECT_ROOT_DIR, "modules", "config", "models.yaml")MODEL_PATHS = {"appearance_feature_extractor": os.path.join(MODELS_DIR, "appearance_feature_extractor.safetensors"),3 unmodified lines"stitching_retargeting_module": os.path.join(MODELS_DIR, "stitching_retargeting_module.safetensors"),"face_yolov8n": os.path.join(MODELS_DIR, "face_yolov8n.pt")}@functools.lru_cachedef init_dirs():for dir_path in [MODELS_DIR,OUTPUTS_DIR]:os.makedirs(dir_path, exist_ok=True)4 unmodified lines5678910113 unmodified lines1516171819202122232425262728294 unmodified linesPROJECT_ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), "..", "..")MODELS_DIR = os.path.join(PROJECT_ROOT_DIR, "models")OUTPUTS_DIR = os.path.join(PROJECT_ROOT_DIR, "outputs")EXP_OUTPUT_DIR = os.path.join(OUTPUTS_DIR, "exp_data")MODEL_CONFIG = os.path.join(PROJECT_ROOT_DIR, "modules", "config", "models.yaml")MODEL_PATHS = {"appearance_feature_extractor": os.path.join(MODELS_DIR, "appearance_feature_extractor.safetensors"),3 unmodified lines"stitching_retargeting_module": os.path.join(MODELS_DIR, "stitching_retargeting_module.safetensors"),"face_yolov8n": os.path.join(MODELS_DIR, "face_yolov8n.pt")}MASK_TEMPLATES = os.path.join(PROJECT_ROOT_DIR, "modules", "utils", "resources", "mask_template.png")@functools.lru_cachedef init_dirs():for dir_path in [MODELS_DIR,OUTPUTS_DIR,EXP_OUTPUT_DIR]:os.makedirs(dir_path, exist_ok=True)
modules/utils/paths.py+4-1