asahi417 commited on
Commit
a772b7b
1 Parent(s): 85fe221
Files changed (1) hide show
  1. experiment_voxceleb1.py +2 -1
experiment_voxceleb1.py CHANGED
@@ -15,7 +15,8 @@ cache_dir = p_join("experiment_cache", "voxceleb1")
15
 
16
  def get_embedding(model_class, model_name: str, dataset_name: str):
17
  dataset = load_dataset(dataset_name, split="test")
18
- file_path = p_join(cache_dir, f"embedding.{model_name}.json")
 
19
  if os.path.exists(file_path):
20
  return
21
  model = model_class()
 
15
 
16
  def get_embedding(model_class, model_name: str, dataset_name: str):
17
  dataset = load_dataset(dataset_name, split="test")
18
+ file_path = p_join("experiment_cache", "embeddings", f"{model_name}.{dataset_name}.json")
19
+ os.makedirs(os.path.dirname(file_path), exist_ok=True)
20
  if os.path.exists(file_path):
21
  return
22
  model = model_class()