CV-ZMH / human-action-recognition

Multi Person Skeleton Based Action Recognition and Tracking
MIT License
125 stars 26 forks source link

I met some questions in demo.py #10

Open gexalibur opened 1 year ago

gexalibur commented 1 year ago

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~~~~

Zzzher commented 7 months ago

谢谢你的代码,这对我很有帮助,你是非常好的人。但这里有一个问题需要你的帮助!T^T~ 运行“demo.py”时没有错误,但终端只是在这一步停止了 40 分钟而没有结束:

[信息]使用“../weights/pose_estimation/trtpose/densenet121_baseline_att_256x256_B_epoch_160.pth“ [INFO] 加载 TensorRT reid 模型:../weights/tracker/deepsort/siamese_market1501.trt。 [INFO] 将输出写入 ../output/fun_theory_trtpose_deepsort_market1501_siamesenet.avi [INFO] 将输出写入 ../output/fun_theory_trtpose_deepsort_market1501_siamesenet_debug.avi 运行 |fun_theory.mp4 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 0% -:--:-- 76.87fps[INFO] 将视频保存到: ../输出/fun_theory_trtpose_deepsort_market1501_siamesenet.avi

希望您的回复~~~~

Hello,I have encountered this problem while studying this post, have you solved it already?

15253a commented 7 months ago

Hello,I have encountered this problem while studying this post, have you solved it already?

Utkarsh-quytech commented 6 months ago

Hello, has anyone found any solution to above problem? Please help, thanks!

Raven19888 commented 1 month ago

In the show() function of src/lib/utils/utils.py , there is a key = cv2.waitKey(wait) in line 45, ane the value of wait is 0 which is a fixed parameter. This means that the window is waiting for a key value input from the user. Try to replace wait = 0 by wait = 1 so that the window will not wait for an operation.

Another way is to comment out utils.show(debug_img, window='debug_tracking') and utils.show(render_image, window='webcam' if isinstance(source, int) else osp.basename(source)) in demo.py if you don't need to show the window.