jacobgil / pyfishervector

Python implementation for Image Classification based on GMM dictionaries and fisher vectors.
137 stars 56 forks source link

TypeError: The first input argument needs to be a sequence #8

Open jiyuanli002523 opened 5 years ago

jiyuanli002523 commented 5 years ago

hi, when my program run into def train(gmm,features): X = np.concatenate(features.values()) Y = np.concatenate([np.float32([i]*len(v)) for i,v in zip(range(0, len(features)), features.values())]) clf = svm.SVC() clf.fit(X,Y) return clf report the error : in train X = np.concatenate(features.values()) TypeError: The first input argument needs to be a sequence

can you help me resolve this? Thanks

KmssG commented 4 years ago

I meet the same problem, have you soled this error?

roseif commented 4 years ago

I meet the same problem, have you soled this error?