Skip to content

How can i get the value stored by pickle? #687

Discussion options

You must be logged in to vote

Thank You! @fcakyon
This is a demo code :

import pickle

list_file = open('test0.pickle','rb')
list2 = pickle.load(list_file)
print(list2)
print(list2[0].score.value)
print(list2[0].category.id)
x1, y1, w, h = list2[0].bbox.to_coco_bbox()
#print(list2[0].bbox.get_shifted_box().to_voc_bbox())
print(x1, y1, w, h)

Hope to help others!

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@WangRongsheng
Comment options

@fcakyon
Comment options

Comment options

You must be logged in to vote
1 reply
@fcakyon
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fcakyon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants