Happy Chinese New Year!
There was a mistake in training:
File "UCF101_CRNN.py", line 173, in <module>
all_y_list = labels2cat(le, actions) # all video labels
File "/data/chenyang/video_classification/video-classification/CRNN/functions.py", line 14, in labels2cat
return label_encoder.transform(list)
File "/usr/local/anaconda3/lib/python3.7/site-packages/sklearn/preprocessing/label.py", line 134, in transform
return np.searchsorted(self.classes_, y)
File "/usr/local/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 1170, in searchsorted
return _wrapfunc(a, 'searchsorted', v, side=side, sorter=sorter)
File "/usr/local/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 61, in _wrapfunc
return _wrapit(obj, method, *args, **kwds)
File "/usr/local/anaconda3/lib/python3.7/site-packages/numpy/core/fromnumeric.py", line 41, in _wrapit
result = getattr(asarray(obj), method)(*args, **kwds)
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'
Happy Chinese New Year! There was a mistake in training:
Can you help me?Thanks.