-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
24 lines (20 loc) · 738 Bytes
/
config.py
File metadata and controls
24 lines (20 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
# ===== PATHS =====
VIDEO_FOLDER = 'data/inputs/videos/'
AUDIO_FOLDER = 'data/inputs/audios'
AUDIO_TRANSCRIPT_FOLDER = 'data/inputs/audio_transcripts/'
GROUND_TRUTH_FILE = "data/inputs/ground_truth.csv"
# ===== MODEL INFO =====
MODEL_NAME = "HuggingFaceTB/SmolVLM2-2.2B-Instruct"
DEVICE = "cuda"
# ===== Output folders =====
CSV_FOLDER = "data/outputs/csv/"
STATISTICS_FOLDER = "data/outputs/statistics/"
os.makedirs(CSV_FOLDER, exist_ok=True)
os.makedirs(STATISTICS_FOLDER, exist_ok=True)
# ===== OUTPUT FILES =====
FILE_NAME = f"smol_vlm_2.2b_quant_8"
CSV_PATH = os.path.join(CSV_FOLDER, f"{FILE_NAME}.csv")
STAT_JSON_PATH = os.path.join(STATISTICS_FOLDER, f"{FILE_NAME}_stats.json")
SAMPLE_VIDEO = True
SAMPLE_SIZE = 271