Giter Site home page Giter Site logo

omarabid59 / yolo_google-cloud Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 17.0 10.63 MB

Google Cloud Machine Learning for backend YOLO v3 object detection inference with a browser based WebRTC connection

Python 59.88% HTML 3.27% CSS 0.40% JavaScript 36.45%
webrtc cloud detection-inference yolov3 tensorflow aiortc web-application

yolo_google-cloud's People

Contributors

omarabid59 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

yolo_google-cloud's Issues

Not able to connect to the http server in the final step

After following each step, during the final step in order to launch the website, I'm not able to connect. It just says connection refused.

image

What is causing this and what can be done to solve it? Is there something that need to be changed in the Google Cloud platform?

Thanks

CUDA Error: no CUDA-capable device is detected

I'm running the code as instructed in the documentation to this GitHub repo, and I'm getting the following error logged in nohup.out file after runnning nohup python3 ~/YOLO_Google-Cloud/mlserver/mlserverclient.py &

layer filters size input output
0 python3: ./src/cuda.c:36: check_error: Assertion `0' failed.
CUDA Error: no CUDA-capable device is detected

Any idea what might be wrong?

Object detection not working

I've managed to setup everything right, and the website with a video steam work just fine. But I'm not detecting any object in the video stream (I'm in the camera view, so a person should have been detected).

Here is what I get on the server side in my GCP SSH Terminal:

INFO:ice:Connection(0) ICE failed
DEBUG:ice:controlled - checking -> failed
DEBUG:dtls:client - State.NEW -> State.CONNECTING
DEBUG:dtls:client x DTLS handshake failed (connection error)
DEBUG:dtls:client - State.CONNECTING -> State.FAILED
ICE connection state is failed
DEBUG:ice:controlled - failed -> closed
ICE connection state is closed

Regarding my YOLO model

I have trained YOLOv3 model on my own custom dataset so by just replacing my cfg , name and data files will this work out without any issues???

Error occured sending or receiving data on ML client.

I am able to run both script but once i open url in browser it's break due to some json loads error.
What i have found through troubleshooting. there is issue with MODEL_DATA.py in updateData function. I checked variable it doesn't contain dictionary.
Here is log of mlserverclient.py
Loading weights from /home/gb-pc08/Project/aiortc/examples/server/YOLO_Google-Cloud/mlserver/model/yolov3-tiny.weights...Done! Starting YOLO Predictor Thread Starting ZeroMQ DataHandler DATA Connected! MESSAGE Connected! Exception in thread ZeroMQ DataHandler: Traceback (most recent call last): File "/usr/lib/python3.6/threading.py", line 916, in _bootstrap_inner self.run() File "/home/gb-pc08/Project/aiortc/examples/server/YOLO_Google-Cloud/mlserver/ZeroMQ.py", line 68, in run self.update(self.name) File "/home/gb-pc08/Project/aiortc/examples/server/YOLO_Google-Cloud/mlserver/ZeroMQ.py", line 76, in update self.moduleData.updateData(data) File "/home/gb-pc08/Project/aiortc/examples/server/YOLO_Google-Cloud/mlserver/MODULE_DATA.py", line 43, in updateData data = json.loads(message) File "/usr/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/usr/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.