PyMNNInterpreter_getSessionOutput: Get output failed - Solved #319
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When
score_out_name = [ "cls_pred_stride_8", "cls_pred_stride_16", "cls_pred_stride_32"]
boxes_out_name = [ "dis_pred_stride_8", "dis_pred_stride_16", "dis_pred_stride_32"]
Then below error was occuring
Using MNN as inference backend
Using weight: ../../../nanodet-320.mnn
find 2 images
0%| | 0/2 [00:00<?, ?it/s]Error: can't find output: cls_pred_stride_8
0%| | 0/2 [00:00<?, ?it/s]
Traceback (most recent call last):
File "demo_mnn.py", line 811, in
main()
File "demo_mnn.py", line 797, in main
detector.detect_folder(args.img_fold, args.result_fold)
File "demo_mnn.py", line 655, in detect_folder
bbox, label, score = self.detect(img)
File "demo_mnn.py", line 620, in detect
scores, raw_boxes = self.infer_image(img_input)
File "demo_mnn.py", line 689, in infer_image
scores = [
File "demo_mnn.py", line 690, in
self.interpreter.getSessionOutput(self.session, x).getData()
Exception: PyMNNInterpreter_getSessionOutput: Get output failed
The solution was to give the string number