yunho0130 / tensorflow-lite

O'Reilly <TinyML: 텐서플로우 라이트 Tensorflow Lite> 소스코드 저장소
https://www.tensorflow.org/lite/microcontrollers
Apache License 2.0
58 stars 49 forks source link

TinyML Book 페이지 130을 진행하다가 Error 발생함 #84

Closed joongoes closed 3 years ago

joongoes commented 3 years ago

TinyML: Tensorflow lite for microcontroller 이슈

이곳은 텐서플로우 라이트 한글화 프로젝트의 Issue 공간입니다. 텐서플로우 자체에 이슈가 있다면 아래의 Github 링크나 Stack Overflow를 참조하시기 바랍니다.

에러로그

Tensorflow Github

Stack Overflow

yunho0130 commented 3 years ago

@joongoes 안녕하세요. 확인해보았는데 에러가 재현되지 않습니다. 다음을 확인해주세요

image

image

image

joongoes commented 3 years ago

답변감사합니다. 테스트 환경은 크게 차이가 없는 것으로 보입니다. 제가 가지고 있는 맥미니에서도 똑같은 현상이 일어 나는데요. 위 코멘트에서 "참고로 코드를 git clone 하실 때, 공식 tensorflow 레포가 아니라 이 레포에서 받은 경로로 가셔야 합니다."라고 하셨는데, 저는 책에 나와 있는 명령 "git clone https://github.com/tensorflow/tensorflow.git"을 써서 다운 받았습니다. 이렇게 다운 받고 난 뒤 파일들을 보면 정상적으로 다운로드 된 것으로 보입니다만, 이렇게 받으면 안된다는 말씀이신지요?

joongoes commented 3 years ago

위에서 빌드하신 내용을 보면 제가 한 것과 차이 점이 있어 보입니다. 저는 아래 캡쳐한 부분과 같이 warning 이 나옵니다. 혹시 Makefile 이 다른 건 아닐까요? 스크린샷 2020-10-09 오후 4 46 53

tensorflow/lite/micro/tools/make/Makefile:400: warning: overriding recipe for target 'tensorflow/lite/micro/tools/make/downloads/person_model_int8' tensorflow/lite/micro/tools/make/Makefile:400: warning: ignoring old recipe for target 'tensorflow/lite/micro/tools/make/downloads/person_model_int8'

joongoes commented 3 years ago

git clone 으로 다운 받은 Makefile로 실행시 모든 옵션이 다 들어옵니다. 그래서 capture 해주신 g++ 옵션으로 빌드하니 문제없이 실행됩니다. 하지만 이것도 실행 후 출력되는 문구('All TESTS PASSED' vs. 'PASS')가 일부 다릅니다. 저는 그냥 'PASS'만 나옵니다. 따라서, 이후 예제에서도 테스트를 실행할 때마다 일일이 빌드 명령 라인을 수작업으로 만들어 주고 있습니다.

jaeho77 commented 3 years ago

유사한 경우인지는 모르겠지만 아래의 환경에서 동일하게 적용할 경우 Error가 발생됩니다.

image

image 이하생략 image

// make -f tensorflow/lite/micro/tools/make/Makefile test_hello_world 로 적용해도 Error가 발생함 image

yunho0130 commented 3 years ago

@jaeho77 @joongoes 두 분 다 텐서플로우 최신버전에서 나는 에러입니다. 공식 tensorflow 레포가 아니라 이 레포에서 받은 경로로 가셔야 합니다.

jaeho77 commented 3 years ago

"git clone https://github.com/tensorflow/tensorflow.git" 을 받고, "cd tensorflow"을 가서 아래의 command을 사용하면 동일하게 Error가 발생합니다.

1) make -f tensorflow/lite/micro/tools/make/Makefile test_hello_world_test 2) make -f tensorflow/lite/micro/tools/make/Makefile test_hello_world 3) make -f tensorflow/lite/micro/tools/make/Makefile hello_world_test 4) make -f tensorflow/lite/micro/tools/make/Makefile hello_world

아래의 경로가 아닌지 문의 드립니다. image

joongoes commented 3 years ago

"공식 tensorflow 레포가 아니라 이 레포에서 받은 경로로 가셔야 합니다."가 무슨 의미인지 알려주시면 감사하겠습니다. 'git clone https://github.com/tensorflow/tensorflow.git' 으로 받은 레포 속에 경로를 알려주는 무언가가 있다는 말씀이신지요? 일단, 저는 'git checkout r1.9'(r1.5까지 설정 해봄)와 같이 이전 버전의 경로를 설정해 봤습니다만 안되긴 마찬가지입니다.

yunho0130 commented 3 years ago

@jaeho77 @joongoes git clone https://github.com/yunho0130/tensorflow-lite/ 으로 하세요 책에 각주에도 makefile 경로에서 확인하실 수 있어요

joongoes commented 3 years ago

감사합니다. 알려주신 경로로 실행해서 정상동작합니다.

SunBeenMoon commented 3 years ago

@yunho0130 Hello, I've checked your github because I have the same problem. I have to use haimax-we1 board. But in your github there isn't. Do you have plane to add haimax-we1 board?