Skip to content
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

Too slow on web server #6

Open
Zames-Chang opened this issue May 27, 2020 · 9 comments
Open

Too slow on web server #6

Zames-Chang opened this issue May 27, 2020 · 9 comments

Comments

@Zames-Chang
Copy link
Contributor

Zames-Chang commented May 27, 2020

Since Fast RCNN is a very CPU-bound object detection model, it loop over all sub image to find out possible. Although it does a lot optimization like Dynamic Programming. It still not a good fit on real time object detection.

I recommend you to use yolo4. I is the fastest object detection right now If I am not wrong.

There is python API in file darknet.py. Since I don't have datasets for training, I cannot help you to training deep learning model. Sorry~

@chonyy
Copy link
Owner

chonyy commented May 27, 2020

I know that the efficiency of Faster RCNN is fairly limited. I started with it because of its high accuracy. I need enough accuracy to design the algorithm for this project.

Since I already got a basic structure now, I really should find a way to improve the inference time of each frame. Changing the model to yolov4 would be a really nice approach!

I will work on it once I got time. Thanks!

@Zames-Chang
Copy link
Contributor Author

Zames-Chang commented May 27, 2020

this is a comparison of accuracy and process speed between different object detection model from this article

  • accuracy

  • speed

image

No matter speed or acc, yolo3 > fast R-CNN, we even use better version of yolo3 (yolo4).

@Zames-Chang
Copy link
Contributor Author

Zames-Chang commented May 27, 2020

Fun story, this model is very great. US military use this model on drone to automatically identify enemy and fire them. Because of this application, the author of yolo4 give up object detection field and switch to other research area.

@AditSoni
Copy link

AditSoni commented Jun 6, 2020

hey guys can yall gimme a little advice so i can move in the field of machine learning and deep learning
and also i cant run this project ,I am using pop_os ,python 3.6.10 , nvdia gpu

@chonyy
Copy link
Owner

chonyy commented Jun 6, 2020

@AditSoni Hey, can you please tell me what error message did you get?

@AditSoni
Copy link

AditSoni commented Jun 7, 2020

Screenshot from 2020-06-07 17-28-43
pyopenpose module fails

@AditSoni
Copy link

AditSoni commented Jun 7, 2020

and now I have got a new error:

Something went wrong when importing OpenPose
Debugging middleware caught exception in streamed response at a point where response headers were already sent.
Traceback (most recent call last):
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/werkzeug/wsgi.py", line 506, in next
return self._next()
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/werkzeug/wrappers/base_response.py", line 45, in _iter_encoded
for item in iterable:
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/src/app_helper.py", line 19, in getVideoStream
datum, opWrapper = openpose_init()
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/src/utils.py", line 443, in openpose_init
raise e
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/src/utils.py", line 440, in openpose_init
import pyopenpose as op
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/pyopenpose/init.py", line 1, in
from .core import OPose
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/pyopenpose/core.py", line 1, in
from .utils import ClassDict
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/pyopenpose/utils/init.py", line 2, in
from . import op_json
File "/home/aditsoni/Workspace/python/Basketball_shot_estimation/AI-basketball-analysis/venv/lib/python3.6/site-packages/pyopenpose/utils/op_json.py", line 7, in
from classdict import ClassDict
ModuleNotFoundError: No module named 'classdict'

@chonyy
Copy link
Owner

chonyy commented Jun 7, 2020

@AditSoni Hi, I think this problem has something to do with your environment setup, please try it on Windows or Ubuntu.
Also, feel free to start a new issue since this thread is focusing on how to improve the efficiency.

Repository owner deleted a comment from AditSoni Jun 9, 2020
@chonyy
Copy link
Owner

chonyy commented Jun 9, 2020

@AditSoni Hi, please start a new issue if you encounter any further problems. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants