haltakov / natural-language-image-search

Search photos on Unsplash using natural language
MIT License
987 stars 105 forks source link

ValueError: cannot reshape array of size 924786624 into shape (1981161,512) #26

Open Techsetter opened 1 year ago

Techsetter commented 1 year ago

Getting this error when running this code in the notebook

import pandas as pd import numpy as np

Load the photo IDs

photo_ids = pd.read_csv("unsplash-dataset/photo_ids.csv") photo_ids = list(photo_ids['photo_id'])

Load the features vectors

photo_features = np.load("unsplash-dataset/features.npy")

sunovivid commented 1 year ago

I encountered the same issue. I think it is caused by damaged features.npy. I reran the cell for downloading files and the error is resolved!