How can i get the value stored by pickle? #687
Answered
by
WangRongsheng
WangRongsheng
asked this question in
Q&A
-
Hello,
I hope to get the value of |
Beta Was this translation helpful? Give feedback.
Answered by
WangRongsheng
Oct 19, 2022
Replies: 3 comments 3 replies
-
You can get them by: prediction_score = object_prediction.score.value
prediction_category_name = object_prediction.category.name
prediction_category_id= object_prediction.category.id |
Beta Was this translation helpful? Give feedback.
2 replies
-
thank you!So how do I get |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thank You! @fcakyon 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! |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fcakyon
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank You! @fcakyon
This is a demo code :
Hope to help others!