size Mb -> Kb
Browse files- ucf_crime.py +2 -2
ucf_crime.py
CHANGED
@@ -91,7 +91,7 @@ video_frames = datasets.Features(
|
|
91 |
"video_path": datasets.Value("string"),
|
92 |
"event": datasets.features.ClassLabel(names=_NAMES),
|
93 |
"anomaly": datasets.features.ClassLabel(names=_ANOMALIES),
|
94 |
-
"size": datasets.features.Value("
|
95 |
}
|
96 |
)
|
97 |
|
@@ -203,6 +203,6 @@ class UCFCrime(datasets.GeneratorBasedBuilder):
|
|
203 |
"video_path": absolute_file_path,
|
204 |
"event": label,
|
205 |
"anomaly": "Abnormal" if label != "Normal" else label,
|
206 |
-
"size": os.path.getsize(absolute_file_path) //
|
207 |
}
|
208 |
idx += 1
|
|
|
91 |
"video_path": datasets.Value("string"),
|
92 |
"event": datasets.features.ClassLabel(names=_NAMES),
|
93 |
"anomaly": datasets.features.ClassLabel(names=_ANOMALIES),
|
94 |
+
"size": datasets.features.Value("uint32"),
|
95 |
}
|
96 |
)
|
97 |
|
|
|
203 |
"video_path": absolute_file_path,
|
204 |
"event": label,
|
205 |
"anomaly": "Abnormal" if label != "Normal" else label,
|
206 |
+
"size": os.path.getsize(absolute_file_path) // 1024,
|
207 |
}
|
208 |
idx += 1
|