0

I have some real images in an image array and some fake images in another image array. I want to append the two numpy image arrays to train my CNN model. However np.concatenateproduces the error only integer scalar arrays can be converted to a scalar index

That shape of my real images array is (30938, 3,112,112) and the shape of my fake images array is (11372,3,112,112) where the shape of each image is (3,112,112)

I have already tried, combined=np.concatenate(real,fake,axis=0)

Where is the problem?

1 Answer 1

1

There is just one mistake

combined=np.concatenate((real,fake),axis=0)
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.