Update main.py
Browse files
main.py
CHANGED
|
@@ -418,7 +418,7 @@ def download_npz_file(video_name: str) -> str:
|
|
| 418 |
"""
|
| 419 |
try:
|
| 420 |
# Construct the file path in the dataset repo
|
| 421 |
-
file_path = f"{
|
| 422 |
|
| 423 |
# Check if file already exists in cache
|
| 424 |
local_path = os.path.join(CACHE_DIR, f"{video_name}.npz")
|
|
@@ -455,7 +455,7 @@ def get_available_videos_from_hf():
|
|
| 455 |
# Filter for .npz files in the I3D subfolder
|
| 456 |
videos = []
|
| 457 |
for file in files:
|
| 458 |
-
if file.startswith(f"
|
| 459 |
# Extract the full filename without extension
|
| 460 |
# For files like "I3D/OP02-R02-TurkeySandwich.npz"
|
| 461 |
video_name = os.path.basename(file).replace('.npz', '')
|
|
|
|
| 418 |
"""
|
| 419 |
try:
|
| 420 |
# Construct the file path in the dataset repo
|
| 421 |
+
file_path = f"{video_name}.npz"
|
| 422 |
|
| 423 |
# Check if file already exists in cache
|
| 424 |
local_path = os.path.join(CACHE_DIR, f"{video_name}.npz")
|
|
|
|
| 455 |
# Filter for .npz files in the I3D subfolder
|
| 456 |
videos = []
|
| 457 |
for file in files:
|
| 458 |
+
if file.startswith(f"") and file.endswith('.npz'):
|
| 459 |
# Extract the full filename without extension
|
| 460 |
# For files like "I3D/OP02-R02-TurkeySandwich.npz"
|
| 461 |
video_name = os.path.basename(file).replace('.npz', '')
|