Skip to content
\n
\n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n\n \n \n \n \n
detect_result_list = self.predictor.predict(np_image)
if self.padder and detect_result_list:
boxes = np.array([detect_result.box for detect_result in detect_result_list])
boxes_orig = self.padder.inverse_apply_coords(boxes)
for idx, detect_result in enumerate(detect_result_list):
detect_result.box = boxes_orig[idx, :].tolist()
for detect_result in detect_result_list:
self.dp_manager.set_image_annotation(detect_result, to_image=self.to_image, crop_image=self.crop_image)
\n
\n
\n

\n

Raw results from predictors are not being kept in memory.

","upvoteCount":1,"url":"https://github.com/deepdoctection/deepdoctection/discussions/364#discussioncomment-10670203"}}}

Are the results stored in memory?? #364

Answered by JaMe76
YasaswiniSireddy asked this question in Q&A
Discussion options

You must be logged in to vote

Raw results from predictors (e.g. 'DetectionResult') will be validated and converted into some derived Annotation instance. You can see a snippet in the code below: self.dp_manager.set_image_annotation will do the validation and the conversion into the target format.

detect_result_list = self.predictor.predict(np_image)
if self.padder and detect_result_list:
boxes = np.array([detect_result.box for detect_result in detect_result_list])
boxes_orig = self.padder.inverse_apply_coords(boxes)
for idx, detect_result in enumerate(detect_result_list):
detect_result.box = boxes_orig[idx, :].t…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by YasaswiniSireddy
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