프로그램 사용/yolo_tensorflow
tensorflow lite interpreter->AllocateTensors()
구차니
2021. 5. 26. 12:42
segmentation fault가 떠서 어디서 죽나 찾는데 꽤나 고생했네 -_-
(빌드가 느리면 역시 스트레스..)
그런데 도무지 allocateTensors() 라는 함수가 어떤 역활을 하는지 모르겠네..
한번 할당하고 또 할당하면 오류나는 느낌..
| // Allocate memory for the model's input `Tensor`s. try interpreter.allocateTensors() |
[링크 : https://www.tensorflow.org/lite/guide/inference]
[링크 : https://www.tensorflow.org/lite/api_docs/cc/class/tflite/interpreter#allocatetensors]
여기 소스를 많이 참고했는데.. tensorflow의 label_image쪽이랑은 또 많이 달라서
어느 가이드를 따라가야 하나 고민..
[링크 : https://github.com/Qengineering/TensorFlow_Lite_SSD_RPi_64-bits/blob/master/MobileNetV1.cpp]