Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 2
    The reason is that you are allocating too much memory, and the fix would be to use less memory. Given the amount of detail you have provided, that's about all we can say. But if your program ever tries to allocate an array with 276824064 rows, there is most certainly something very wrong with your code. Commented Jan 5 at 8:47
  • @xdurch0 I was wondering if this was maybe a common problem with using to_categorical. The classification I'm doing makes use of 512x512 RGB training images with the aim of classifying 11 categories, and so I'm hot encoding the label data. Incidentally, I actually got this to finish running one time without changing anything, so I thought it was okay, but then it started giving me errors again. What other details could I provide? Your reply is much appreciated. Commented Jan 6 at 1:17