Created
November 16, 2021 13:47
-
-
Save overtunned/e2b0764a9701a2cbd89f9aea9563bd3b to your computer and use it in GitHub Desktop.
cPickle dump and load
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import _pickle as cPickle | |
| cPickle.dump(train_imgids, open('filename', 'wb')) | |
| data = cPickle.load(open('filename','rb')).tolist() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment