It’s hard to debug this without seeing the code, but my guess would be that pickle can’t find the definition of the convNet class. You’re probably trying to import it from a different directory, or you have moved the file.