cloud-annotations / object-detection-react

⚛️ Real-Time Custom Object Detection with TensorFlow.js
MIT License
255 stars 108 forks source link

How to Transfer to Raspberry Pi? #19

Closed adlarenas closed 4 years ago

adlarenas commented 4 years ago

is it possible to transfer the codes and the model to rpi? need help. can u please help me by giving brief steps?

bourdakos1 commented 4 years ago

You can scp all the files to the raspberry pi following these steps: https://www.raspberrypi.org/documentation/remote-access/ssh/scp.md

An alternate: You could clone the repo directly to the raspberry pi using git and you could download the model to the raspberry pi by installing cacli and running cacli download MODEL-ID

Hope this helps :)

adlarenas commented 4 years ago

Omg. Truly grateful! I will do. I already cloned the repo and downloaded the model to raspberry pi but forgot to do the cacli part. Thank you very much!!

On Sun, Jan 26, 2020 at 6:58 AM Nick Bourdakos notifications@github.com wrote:

You can scp all the files to the raspberry pi following these steps: https://www.raspberrypi.org/documentation/remote-access/ssh/scp.md

An alternate: You could clone the repo directly to the raspberry pi using git and you could download the model to the raspberry pi by installing cacli and running cacli download MODEL-ID

Hope this helps :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCQXEMUHDCZKOAX2FNTQ7S72ZA5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5HMBI#issuecomment-578450949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCTBSEPSNJB64DRXRB3Q7S72ZANCNFSM4KLONEWA .

adlarenas commented 4 years ago

How do we install cacli on raspberry pi sir? 😰

On Sun, 26 Jan 2020 at 2:03 PM Adela Arenas maadelaarenas@gmail.com wrote:

Omg. Truly grateful! I will do. I already cloned the repo and downloaded the model to raspberry pi but forgot to do the cacli part. Thank you very much!!

On Sun, Jan 26, 2020 at 6:58 AM Nick Bourdakos notifications@github.com wrote:

You can scp all the files to the raspberry pi following these steps: https://www.raspberrypi.org/documentation/remote-access/ssh/scp.md

An alternate: You could clone the repo directly to the raspberry pi using git and you could download the model to the raspberry pi by installing cacli and running cacli download MODEL-ID

Hope this helps :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCQXEMUHDCZKOAX2FNTQ7S72ZA5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ5HMBI#issuecomment-578450949, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCTBSEPSNJB64DRXRB3Q7S72ZANCNFSM4KLONEWA .

bourdakos1 commented 4 years ago

Are you able to run this script:

curl -sSL https://cloud.annotations.ai/install.sh | sudo sh
adlarenas commented 4 years ago

Yes, but it didnt work 😥 I’m working on raspberry pi 3

On Mon, 27 Jan 2020 at 9:26 AM Nick Bourdakos notifications@github.com wrote:

Are you able to run this script:

curl -sSL https://cloud.annotations.ai/install.sh | sudo sh

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCRDLVIW6TMIVNJU7NTQ7YZ3VA5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJ6DJVA#issuecomment-578565332, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCWM74QFJDM5XZ3UR4DQ7YZ3VANCNFSM4KLONEWA .

bourdakos1 commented 4 years ago

I haven’t tested on a raspberry pi yet, I can try tomorrow morning. Someone else just mentioned the install script isn’t working though, so I’ll double check that now

adlarenas commented 4 years ago

Thank you! ❤️ On Wed, 29 Jan 2020 at 7:01 AM Nick Bourdakos notifications@github.com wrote:

I haven’t tested on a raspberry pi yet, I can try tomorrow morning. Someone else just mentioned the install script isn’t working though, so I’ll double check that now

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCXG4RVGZZDQFAAQDKLRAC2L7A5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFKH7Y#issuecomment-579511295, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCXDJVWVS5SV7L7TWR3RAC2L7ANCNFSM4KLONEWA .

bourdakos1 commented 4 years ago

@moficodes do you mind testing this on a raspberry pi if you have on handy? or some sort of linux?

moficodes commented 4 years ago

Dont have a pi setup. But can try to check on a virtual machine running a raspbian flavor. in the mean time @adlarenas any specific error you got with the script?

bourdakos1 commented 4 years ago

@adlarenas do you mind running:

uname

and:

uname -m

and post the results here?

adlarenas commented 4 years ago

Here are the results:

pi@raspberrypi:~ $ uname Linux pi@raspberrypi:~ $ uname -m armv7l pi@raspberrypi:~ $

Actually, when i re-run the very first commqnd you sent me, I was able to install cacli ❤️. Then after I entered my credentials and all for the download, I ran the command npm start and below is the result:

tensorflowjs-object-detection@1.0.0 start /home/pi/Downloads/object-detection-react-master react-scripts start

sh: 1: react-scripts: not found npm ERR! code ELIFECYCLE npm ERR! syscall spawn npm ERR! file sh npm ERR! errno ENOENT npm ERR! tensorflowjs-object-detection@1.0.0 start: react-scripts start npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the tensorflowjs-object-detection@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2020-01-30T08_58_56_504Z-debug.log

On Thu, 30 Jan 2020 at 1:38 AM Nick Bourdakos notifications@github.com wrote:

@adlarenas https://github.com/adlarenas do you mind running:

uname

and:

uname -m

and post the results here?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCSAIJWEIUK67MPPDFDRAG5J7A5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKICVCY#issuecomment-579873419, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCWTANDTPNMJK4QEU4DRAG5J7ANCNFSM4KLONEWA .

bourdakos1 commented 4 years ago

@adlarenas Ah that's good to hear, I made changes to the install script last night, so I guess that fixed it :)

You just need to run:

npm install

before running:

npm start
adlarenas commented 4 years ago

Yay! Success! Thank you! ❤️

On Thu, 30 Jan 2020 at 11:40 PM Nick Bourdakos notifications@github.com wrote:

Ah that's good to hear, I made changes to the install script last night, so I guess that fixed it :)

You just need to run:

npm install

before running:

npm start

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cloud-annotations/object-detection-react/issues/19?email_source=notifications&email_token=AOL4YCQ4SMIHK4HANRN77X3RALYGJA5CNFSM4KLONEWKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKLN2TA#issuecomment-580312396, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOL4YCUCYSSUBFKXVKLD52DRALYGJANCNFSM4KLONEWA .

bourdakos1 commented 4 years ago

yay! no problem :)