jhj0517 commited on
Commit
cb528cc
·
1 Parent(s): ce9c587

Add model paths

Browse files
Files changed (1) hide show
  1. modules/utils/paths.py +7 -0
modules/utils/paths.py CHANGED
@@ -6,6 +6,13 @@ PROJECT_ROOT_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), ".."
6
  MODELS_DIR = os.path.join(PROJECT_ROOT_DIR, "models")
7
  OUTPUTS_DIR = os.path.join(PROJECT_ROOT_DIR, "outputs")
8
  MODEL_CONFIG = os.path.join(PROJECT_ROOT_DIR, "modules", "config", "models.yaml")
 
 
 
 
 
 
 
9
 
10
 
11
  @functools.lru_cache
 
6
  MODELS_DIR = os.path.join(PROJECT_ROOT_DIR, "models")
7
  OUTPUTS_DIR = os.path.join(PROJECT_ROOT_DIR, "outputs")
8
  MODEL_CONFIG = os.path.join(PROJECT_ROOT_DIR, "modules", "config", "models.yaml")
9
+ MODEL_PATHS = {
10
+ "appearance_feature_extractor": os.path.join(MODELS_DIR, "appearance_feature_extractor.safetensors"),
11
+ "motion_extractor": os.path.join(MODELS_DIR, "motion_extractor.safetensors"),
12
+ "warping_module": os.path.join(MODELS_DIR, "warping_module.safetensors"),
13
+ "spade_generator": os.path.join(MODELS_DIR, "spade_generator.safetensors"),
14
+ "stitching_retargeting_module": os.path.join(MODELS_DIR, "stitching_retargeting_module.safetensors")
15
+ }
16
 
17
 
18
  @functools.lru_cache