Skip to content

Instantly share code, notes, and snippets.

@overtunned
Created November 16, 2021 13:47
Show Gist options
  • Select an option

  • Save overtunned/e2b0764a9701a2cbd89f9aea9563bd3b to your computer and use it in GitHub Desktop.

Select an option

Save overtunned/e2b0764a9701a2cbd89f9aea9563bd3b to your computer and use it in GitHub Desktop.
cPickle dump and load
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