nam_nguyenhoai_AI
commited on
Commit
·
9a26245
1
Parent(s):
2b3efbb
fix bug
Browse files
app.py
CHANGED
@@ -96,6 +96,11 @@ def make_video(video_path, outdir='./summarized_video',encoder='Kmeans'):
|
|
96 |
|
97 |
number_of_clusters = round(len(features)*0.15)
|
98 |
|
|
|
|
|
|
|
|
|
|
|
99 |
selected_frames = []
|
100 |
if encoder == "Kmeans":
|
101 |
selected_frames = kmeans(features, number_of_clusters)
|
|
|
96 |
|
97 |
number_of_clusters = round(len(features)*0.15)
|
98 |
|
99 |
+
print("Number of frames: ", len(frames))
|
100 |
+
print("Shape of each frame: ", frames[0].shape)
|
101 |
+
print("Number of features: ", len(features))
|
102 |
+
print("Shape of each feature: ", features[0].shape)
|
103 |
+
|
104 |
selected_frames = []
|
105 |
if encoder == "Kmeans":
|
106 |
selected_frames = kmeans(features, number_of_clusters)
|