Darknsu commited on
Commit
807bbf8
·
verified ·
1 Parent(s): 114d504

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -395,7 +395,7 @@ VIS_CONFIG = {
395
  }
396
 
397
  # Cache directory for downloaded .npz files
398
- CACHE_DIR = Path("./data/cache/I3D")
399
  CACHE_DIR.mkdir(parents=True, exist_ok=True)
400
 
401
  # Hugging Face dataset repository
@@ -418,7 +418,7 @@ def download_npz_file(video_name: str) -> str:
418
  # Download the .npz file to cache
419
  downloaded_path = hf_hub_download(
420
  repo_id=HF_DATASET_REPO,
421
- filename=f"{HF_NPZ_SUBFOLDER}/{npz_filename}",
422
  repo_type="dataset",
423
  cache_dir=CACHE_DIR,
424
  local_dir=CACHE_DIR,
@@ -700,7 +700,6 @@ def get_available_videos():
700
  repo_files = list_repo_files(
701
  repo_id=HF_DATASET_REPO,
702
  repo_type="dataset",
703
- subfolder=HF_NPZ_SUBFOLDER
704
  )
705
  # Filter for .npz files and extract video names
706
  videos = [file.replace('.npz', '') for file in repo_files if file.endswith('.npz')]
 
395
  }
396
 
397
  # Cache directory for downloaded .npz files
398
+ CACHE_DIR = Path("./data/I3D")
399
  CACHE_DIR.mkdir(parents=True, exist_ok=True)
400
 
401
  # Hugging Face dataset repository
 
418
  # Download the .npz file to cache
419
  downloaded_path = hf_hub_download(
420
  repo_id=HF_DATASET_REPO,
421
+ filename=f"{npz_filename}",
422
  repo_type="dataset",
423
  cache_dir=CACHE_DIR,
424
  local_dir=CACHE_DIR,
 
700
  repo_files = list_repo_files(
701
  repo_id=HF_DATASET_REPO,
702
  repo_type="dataset",
 
703
  )
704
  # Filter for .npz files and extract video names
705
  videos = [file.replace('.npz', '') for file in repo_files if file.endswith('.npz')]