-
Notifications
You must be signed in to change notification settings - Fork 7.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploy Custom Trained Weights with Web Application #2969
Comments
@amar-mustaqim Hi, If you know how to do web-application in Python, then you can base it on examples: Do you want to detect objects on images or video-stream from IP-camera? |
Thanks for your suggestion. I want to detect objects on video stream of my web application. Do i need to change the path in the code with my path? And do i need to retrain the weights? |
Just run this command: or So the Darknet will work as server, so you can connect to them by using Chrome/Firefox Web-Browser to ports 8070 and 8090.
You shouldn't change source code.
If you want to detect these objects, then you shouldn't retrain it: https://github.com/AlexeyAB/darknet/blob/master/data/coco.names |
Is this also works if i want to detect the objects from the webcam? Let say if my web application have a webcam features and the output will be display on the web app during the detection |
Yes, for web-cam use this command where is So you can just create a static HTML page and add iframe, for example: <head>
<title>HTML iframe</title>
</head>
<body>
<iframe src="http://your-site:8090" width="100%" height="100%" frameborder="1"> </iframe>
<iframe src="http://your-site:8070" width="100%" height="100%" frameborder="1"> </iframe>
</body>
</html> You can test it on your PC.
<head>
<title>HTML iframe</title>
</head>
<body>
<iframe src="http://localhost:8090" width="100%" height="100%" frameborder="1"> </iframe>
<iframe src="http://localhost:8070" width="100%" height="100%" frameborder="1"> </iframe>
</body>
</html>
|
Hi @AlexeyAB, |
Thank you so much @AlexeyAB for your quick response and good explanations. You are very awesome! |
darknet.exe detector demo data/obj.data yolo-obj.cfg backup/yolo-obj_last.weights -c 0 -mjpeg_port 8090 -json_port 8070 -dont_show -ext_output @AlexeyAB I use this command to detect my weights and it seems running well: and i try to use flask to develop the web: but when I try to execute it on the web while the command line is running, this error occur: - this when i try to add http that u specify and my site address am i missing something? |
Why did you doubled Use |
Hi, I´m still a beginner in darknet and I want to detect objects on images from JSON server. I tried: darknet detector test data/coco.data cfg/yolov3.cfg backup/yolov3.weights -thresh 0.6 -json_port 8070 -ext_output -dont_show data/img/horses.jpg but it does not work. Any help? |
@maria-mh07 If you want to use JSON-server for images - you should implement it by yourself by using Darknet as library. |
ok @AlexeyAB thank you! |
@amar-mustaqim I'm looking to implement something like this! Did you train the model locally? ( I trained it on colab) and am new to Flask, can you please provide the code so I can learn how deployment of yolo4 is done? |
Hi, i'm still a beginner in darknet. I've trained my own weights and i have doubts on how to implement it on web application because i just know how to execute the detection on the command line. Any help?
The text was updated successfully, but these errors were encountered: