-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hi,
I'm trying to run the code but I receive the following error:
Traceback (most recent call last):
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 139, in <module>
fisher_features = fisher_features(working_folder, gmm)
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 102, in fisher_features
features = {f : get_fisher_vectors_from_folder(f, gmm) for f in folders}
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 102, in <dictcomp>
features = {f : get_fisher_vectors_from_folder(f, gmm) for f in folders}
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 97, in get_fisher_vectors_from_folder
return np.float32([fisher_vector(image_descriptors(file), *gmm) for file in files])
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 97, in <listcomp>
return np.float32([fisher_vector(image_descriptors(file), *gmm) for file in files])
File "C:\Users\dangz\Documents\Fotolog\Aesthetic\descriptors\fish.py", line 74, in fisher_vector
fv = np.concatenate([np.concatenate(a), np.concatenate(b), np.concatenate(c)])
ValueError: zero-dimensional arrays cannot be concatenated
The error seems to be in line 74:
fv = np.concatenate([np.concatenate(a), np.concatenate(b), np.concatenate(c)])
Also, when I check
a = fisher_vector_weights(s0, s1, s2, means, covs, w, T)
b = fisher_vector_means(s0, s1, s2, means, covs, w, T)
c = fisher_vector_sigma(s0, s1, s2, means, covs, w, T)
the means (b) and sigma (c) fisher vectors are all 0s.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels