Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FileNotFoundError: [Errno 2] No such file or directory: 'index.csv' #1

Open
Harsora11 opened this issue Jul 8, 2022 · 0 comments
Open

Comments

@Harsora11
Copy link

	with open(self.indexPath) as f:

		reader = f.read(self)

		# loop over the rows in the index
		for row in reader:
			# parse out the image ID and features, then compute the
			# chi-squared distance between the features in our index
			# and our query features
			features = [float(x) for x in row[1:]]
			d = self.chi2_distance(features, queryFeatures)

			# now that we have the distance between the two feature
			# vectors, we can udpate the results dictionary -- the
			# key is the current image ID in the index and the
			# value is the distance we just computed, representing
			# how 'similar' the image in the index is to our query
			results[row[0]] = d

		# close the reader
	f.close()

#Whenever I try to upload image it shows me this error. give me solution for this one.
Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant