Spaces:
Build error
Build error
Commit
·
2e94ee0
1
Parent(s):
c96f53a
Update app.py
Browse files
app.py
CHANGED
@@ -57,6 +57,7 @@ def predict(video):
|
|
57 |
metrics=['accuracy'])
|
58 |
|
59 |
#----Using Deeperforensics 1.0 Parameters----#
|
|
|
60 |
model.load_weights('g1.h5')
|
61 |
model_diff.load_weights('g2.h5')
|
62 |
|
@@ -68,7 +69,8 @@ def predict(video):
|
|
68 |
mix_predict.append(mix/2)
|
69 |
|
70 |
prediction_video = merge_video_prediction(mix_predict, test_sv, test_vc)
|
71 |
-
|
|
|
72 |
video_names = []
|
73 |
for key in test_vc.keys():
|
74 |
video_names.append(key)
|
|
|
57 |
metrics=['accuracy'])
|
58 |
|
59 |
#----Using Deeperforensics 1.0 Parameters----#
|
60 |
+
print("*************** loading the model ***************")
|
61 |
model.load_weights('g1.h5')
|
62 |
model_diff.load_weights('g2.h5')
|
63 |
|
|
|
69 |
mix_predict.append(mix/2)
|
70 |
|
71 |
prediction_video = merge_video_prediction(mix_predict, test_sv, test_vc)
|
72 |
+
|
73 |
+
print("*************** start predict ***************")
|
74 |
video_names = []
|
75 |
for key in test_vc.keys():
|
76 |
video_names.append(key)
|