Diangle commited on
Commit
66cbe94
1 Parent(s): 438f014

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -62,8 +62,7 @@ ft_visual_features_file_bin = DATA_PATH + '/video_half_dataset_visual_features_b
62
 
63
  #load database features:
64
  ft_visual_features_database_bin = np.load(ft_visual_features_file_bin)
65
- ft_visual_features_database = np.memmap(ft_visual_features_file, dtype='float32', mode='r', offset=128,
66
- shape=(ft_visual_features_database_bin.shape[0], ft_visual_features_database_bin.shape[1]*8))
67
 
68
 
69
  database_csv_path = os.path.join(DATA_PATH, 'video_half_dataset.csv')
 
62
 
63
  #load database features:
64
  ft_visual_features_database_bin = np.load(ft_visual_features_file_bin)
65
+ ft_visual_features_database = np.load(ft_visual_features_file, mmap_mode='r')
 
66
 
67
 
68
  database_csv_path = os.path.join(DATA_PATH, 'video_half_dataset.csv')