image2text
image2text copied to clipboard
Error in changing datatype of numpy array
ValueError: setting an array element with a sequence as ::
type(np.float32)
Traceback (most recent call last):
File "app.py", line 29, in
@tushalien You pbbly need to shape the predicted_words in box shape. Is it from my code or your customized code?
It's from your code only. I tried setting it to type=object. But then the line _, num_words = predicted_words.shape
throws error saying it expects more argument. The tuple being returned here is (342, ) which is obviously not expected.
I also meet the problem , after google,know that code line above list(chunks()) and np.array does not have same shape, eg: [1,2,[1,2,[4,1]]],the config file =>num_word2describe = 80 must be devieded evenly