cloud-annotations / object-detection-react

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

use cloud annotaion in electron #22

Closed mas1515 closed 4 years ago

mas1515 commented 4 years ago

hello please make object detection tutorial for electron framework

is it possible use model annotation with electron ??

bourdakos1 commented 4 years ago

I believe it's possible, but I don't have much experience with electron

mas1515 commented 4 years ago

@bourdakos1
i install it but i dont know how use it

"@cloud-annotations/models": "^0.1.1", "wcjs-player": "^6.0.0", "wcjs-prebuilt": "^3.0.0"

bourdakos1 commented 4 years ago

There’s instructions on how to use the sdk here: https://github.com/cloud-annotations/javascript-sdk

mas1515 commented 4 years ago

Hello @bourdakos1

i read javascript-sdk and work like below but i can't load model and get error

i make simple electron app and my step is here 1- i import model_web folder in my project 2- make a js file , test2.js 3- save this data on it ,https://cdn.jsdelivr.net/npm/@cloud-annotations/models see image in link https://pasteboard.co/J9GQkNv.png

and i call my model with this code (image uploaded below)

https://pasteboard.co/J9GRjb5.png

and i get this error (image uploaded below)

https://pasteboard.co/J9GSM2Q.png

first line is this https://pasteboard.co/J9GW3IV.png

second line is this https://pasteboard.co/J9GWzfR.png

please help,

bourdakos1 commented 4 years ago

Hmm, my guess is that it’s having issues locating the model folder

mas1515 commented 4 years ago

@bourdakos1

i work more but get this two error. 1-

https://pasteboard.co/J9HuM5y.png

2- and another error that say models is not define but i have refrenced this js script At the Top locally https://cdn.jsdelivr.net/npm/@cloud-annotations/models

error image >> https://pasteboard.co/J9HvKg2.png

bourdakos1 commented 4 years ago

hmm sorry, I'm not sure I can help

mas1515 commented 4 years ago

@bourdakos1 ok man

if it is possible make electron object detection tutorial in future . thank you .

mas1515 commented 4 years ago

hello @bourdakos1 is it possible use my web_model

with tensorflowjs ??? for object detection .

is there demo or tutorial ?

in this link https://github.com/cloud-annotations/javascript-sdk

you used import models from '@cloud-annotations/models'

not tensorflow js

bourdakos1 commented 4 years ago

https://github.com/cloud-annotations/javascript-sdk uses tensorflowjs

mas1515 commented 4 years ago

@bourdakos1
Hello again how run this project ?? https://github.com/cloud-annotations/javascript-sdk

i go to its directory C:\Users\mas\Desktop\models\nodejs\javascript-sdk-master and run npm install next npm start but get this error npm ERR! missing script: start

how i test it ???

bourdakos1 commented 4 years ago

It’s a library so you can’t really run it by itself. You can run the tests though

npm run btest

mas1515 commented 4 years ago

@bourdakos1

i test npm run test in main directory and get this error

https://pasteboard.co/Jbbpjmy.png

https://pasteboard.co/JbbsNTp.png

bourdakos1 commented 4 years ago

btest not test

mas1515 commented 4 years ago

@bourdakos1 how improve speed and accuracy for object detection when i use javascript sdk ???

bourdakos1 commented 4 years ago

Not much you can do to improve speed aside from trying to find a lighter model. Accuracy wise, you just need more training data

mas1515 commented 4 years ago

@bourdakos1

can you explain how increase speed for detection ????

What do you mean by lighter model?

bourdakos1 commented 4 years ago

Instead of using ssd mobile for your model, you could find a model that is faster. That discussion is outside the scope of this issue though and there's not much I can do to help you