Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ ft_visual_features_file_bin = DATA_PATH + '/dataset_v1_visual_features_database_
|
|
58 |
|
59 |
#load database features:
|
60 |
ft_visual_features_database_bin = np.load(ft_visual_features_file_bin)
|
61 |
-
ft_visual_features_database =
|
62 |
shape=(ft_visual_features_database_bin.shape[0], ft_visual_features_database_bin.shape[1]*8))
|
63 |
|
64 |
database_csv_path = os.path.join(DATA_PATH, 'video_dataset.csv')
|
|
|
58 |
|
59 |
#load database features:
|
60 |
ft_visual_features_database_bin = np.load(ft_visual_features_file_bin)
|
61 |
+
ft_visual_features_database = np.memmap(ft_visual_features_file, dtype='float32', mode='r',
|
62 |
shape=(ft_visual_features_database_bin.shape[0], ft_visual_features_database_bin.shape[1]*8))
|
63 |
|
64 |
database_csv_path = os.path.join(DATA_PATH, 'video_dataset.csv')
|