Code Monkey home page Code Monkey logo

human-action-recognition's Introduction

๐Ÿ‘‹Hi there...

I'm Zin Moe, a self-taught Computer Vision Engineer with 4+ years of industrial experience and currently working at ailytics. I'm keen interested in building and training SOTA deep learning models from scratch with custom datasets.

I have also a wide experience in these areas of computer vision and audio projects:

  • Human Action Recognition
  • Video Background Removal
  • Face Recognition (Coming Soon)
  • Object Detection (Coming Soon)
  • Semantic Segmentation (Coming Soon)
  • Human Pose Estimation (Coming Soon)
  • Object Tracking (Coming Soon)
  • Speaker Diarization (Coming Soon)

๐Ÿ•น๏ธ Tools

pytorch ' Onnx ' nvidia ' docker

OpenCV ' Numpy ' Pandas ' scikit-learn

CV-ZMH's github stats

Profile Views

human-action-recognition's People

Contributors

cv-zmh 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

human-action-recognition's Issues

Question about demo.py

Hi,

First of all, thank you so much for sharing this wonderful work. Really appreciate it.

I have a question regarding the demo.py. Could you help me?

In the demo.py, we initialize the pose_estimator, tracker, and action_classifier before we loop over the video frame.

But, if I try to initialize those 3 above functions inside the loop.

I couldn't get a proper prediction.

I only can get the correct prediction if I initialize them before the loop.

May I ask why I can't get a proper prediction?

Thank you so much for reading this message.

Looking forward to hearing from you.

Problem during inference

While running the demo.py on wideresnet_mars.pth or siamesenet_mars.pth the terminal gets stuck unless i close the video window, then % increases and then after some windows are closed it starts giving the below error.
Any help is much appreciated, Thanks!!

(humanaction) C:\Users\Utkarsh.Singh\Documents\Utkarsh\PoseTracking\human-action-recognition\src>python demo.py --task action --source ../test_data/fun_theory.mp4 --save_folder ../output --debug_track
pycuda or tensorrt not installed.
[INFO] Loading pytorch trtpose model with "../weights\pose_estimation\trtpose\densenet121_baseline_att_256x256_B_epoch_160.pth"
[INFO] Loading pytorch reid model: ../weights\tracker\deepsort\wideresnet_mars.pth.
[INFO] Writing output to ../output\fun_theory_trtpose_deepsort_mars_wideresnet_dnn_torch.avi
[INFO] Writing output to ../output\fun_theory_trtpose_deepsort_mars_wideresnet_dnn_torch_debug.avi
Run | fun_theory.mp4 ---------------------------------------- 0% -:--:-- 66.85fps[INFO] Saving video to : ../output\fun_theory_trtpose_deepsort_mars_wideresnet_dnn_torch.avi
Run | fun_theory.mp4 ---- ----------------------------------- 11% -:--:-- 0.03fps
Traceback (most recent call last):
File "demo.py", line 138, in
main()
File "demo.py", line 98, in main
predictions = action_classifier.classify(predictions)
File "C:\Users\Utkarsh.Singh\Documents\Utkarsh\PoseTracking\human-action-recognition\src\lib\classifier\dnn\classifier.py", line 70, in classify
self.dict_id2clf[id] = self._create_classifier(id)
File "C:\Users\Utkarsh.Singh\Documents\Utkarsh\PoseTracking\human-action-recognition\src\lib\classifier\dnn\classifier.py", line 53, in
model_path, classes, window_size, human_id, threshold=threshold)
File "C:\Users\Utkarsh.Singh\Documents\Utkarsh\PoseTracking\human-action-recognition\src\lib\classifier\dnn\classifier.py", line 172, in init
self.model = pickle.load(f)
ModuleNotFoundError: No module named 'sklearn.neighbors._classification'

demo.py error

I try to run demo.py script and i've got this error message

Traceback (most recent call last):
File "demo.py", line 171, in
main()
File "demo.py", line 65, in main
tracker = get_tracker(**tracker_kwargs)
File "D:\AI_POSE\human-action-recognition\src\lib\tracker_init_.py", line 11, in get_tracker
return trackersname
File "D:\AI_POSE\human-action-recognition\src\lib\tracker\deepsort\deepsort.py", line 15, in init
self.extractor = FeatureExtractor(**kwargs)
File "D:\AI_POSE\human-action-recognition\src\lib\tracker\deepsort\reid_feature_extractor.py", line 43, in init
self.extractor = self._load_torch_model(model_path)
File "D:\AI_POSE\human-action-recognition\src\lib\tracker\deepsort\reid_feature_extractor.py", line 63, in _load_torch_model
state_dict = torch.load(model_path, map_location='cpu')['net_dict']
File "C:\Users\Admin\anaconda3\envs\action-recognition\lib\site-packages\torch\serialization.py", line 386, in load
return _load(f, map_location, pickle_module, **pickle_load_args)
File "C:\Users\Admin\anaconda3\envs\action-recognition\lib\site-packages\torch\serialization.py", line 559, in _load
raise RuntimeError("{} is a zip archive (did you mean to use torch.jit.load()?)".format(f.name))
RuntimeError: D:/AI_POSE/human-action-recognition/weights\tracker\deepsort\siamese_mars.pth is a zip archive (did you mean to use torch.jit.load()?)

I am using window 10

Windows 10 installation

Hi sir, Thanks for the wonderful project. Can you give me a step-by-step on how to build this project on Windows 10? Thanks in advance.

Regarding False positives

Is there a way to remove false positives while detecting the actions?
or any other helpful parameters to tweak.

Thank You

I met some questions in demo.py

Thank you for your code, it's helpful for me, you are very nice person. but here is a question needing your help! T^T~
No error when running 'demo.py', but the terminal just stopped at this step for 40minutes without ending:

[INFO] Loading pytorch trtpose model with "../weights/pose_estimation/trtpose/densenet121_baseline_att_256x256_B_epoch_160.pth"
[INFO] Loading TensorRT reid model: ../weights/tracker/deepsort/siamese_market1501.trt.
[INFO] Writing output to ../output/fun_theory_trtpose_deepsort_market1501_siamesenet.avi
[INFO] Writing output to ../output/fun_theory_trtpose_deepsort_market1501_siamesenet_debug.avi
Run | fun_theory.mp4 โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 0% -:--:-- 76.87fps[INFO] Saving video to : ../output/fun_theory_trtpose_deepsort_market1501_siamesenet.avi

Hope your reply~~~~

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.