Human-Falling-Detect-Tracks icon indicating copy to clipboard operation
Human-Falling-Detect-Tracks copied to clipboard

Something wrong on this demo:AttributeError:'CamLoader_Q' object has no attribute 'ret'

Open RhInEs-liao opened this issue 2 years ago • 16 comments

sunlogin_20211003002044 AttributeError:'CamLoader_Q' object has no attribute 'ret'

I just change the source to my demo.mp4,if I dont change source,that will not identify the camera,I use yolov3~yolov5 that all can identify my webcam;What's wrong?!

my conda env {yolov5} setting: pytorch==1.8.0+cu111 CUDA==11.1 python==3.7 my device: Lenovo Y7000 i5-9300H GTX1660ti

RhInEs-liao avatar Oct 02 '21 16:10 RhInEs-liao

Ok, I fixed that. Try to run just only CameraLoader.py if you want to find that program can read your camera. Maybe you need to change the source number.

GajuuzZ avatar Oct 02 '21 17:10 GajuuzZ

OK,I just change ur commit,then I successfully open the frame of my webcam!but ,when I run main.py,there are some new problems on it; MV)M2SQG$9EH56B3RC{8B8K

RhInEs-liao avatar Oct 03 '21 03:10 RhInEs-liao

the first one code that load the '1s' video,after I run the code,then show a frame,and then show this error to me.

What's more, What is the meaning of "number of source"? 1 means camera? 2 means video file?

RhInEs-liao avatar Oct 03 '21 03:10 RhInEs-liao

I want to know that this demo how to train my own dataset?I see that there are some .py to make a datatest then train that

RhInEs-liao avatar Oct 03 '21 04:10 RhInEs-liao

new problems,I test a video with 3 minutes and 30 seconds,but I just get a 19s detect video result .After 20s,it quickly shut down,and any error is not exist,common finished.I am puzzled;

RhInEs-liao avatar Oct 03 '21 08:10 RhInEs-liao

OK,I just change ur commit,then I successfully open the frame of my webcam!but ,when I run main.py,there are some new problems on it; MV)M2SQG$9EH56B3RC{8B8K

How did you fix this problem? It seems that I have the same problem.

mufenzhimi avatar Oct 03 '21 14:10 mufenzhimi

do you have some other community APPs?I can add you to talk about this demo

RhInEs-liao avatar Oct 03 '21 14:10 RhInEs-liao

OK,I just change ur commit,then I successfully open the frame of my webcam!but ,when I run main.py,there are some new problems on it; MV)M2SQG$9EH56B3RC{8B8K

How did you fix this problem? It seems that I have the same problem.

The OMP problem,I just add two lines code to solve it; you can try to add this code to the begin of your "main.py" import os os.environ[“KMP_DUPLICATE_LIB_OK”]=“TRUE”

RhInEs-liao avatar Oct 03 '21 14:10 RhInEs-liao

OKK!

------------------ 原始邮件 ------------------ 发件人: "GajuuzZ/Human-Falling-Detect-Tracks" @.>; 发送时间: 2021年10月3日(星期天) 晚上10:12 @.>; @.@.>; 主题: Re: [GajuuzZ/Human-Falling-Detect-Tracks] Something wrong on this demo:AttributeError:'CamLoader_Q' object has no attribute 'ret' (#56)

OK,I just change ur commit,then I successfully open the frame of my webcam!but ,when I run main.py,there are some new problems on it;

How did you fix this problem? It seems that I have the same problem.

you can add my "Tencent QQ":1374407026

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.

mufenzhimi avatar Oct 03 '21 14:10 mufenzhimi

Camera source number is the same parameter when you use “cv2.VideoCapture”.

GajuuzZ avatar Oct 03 '21 20:10 GajuuzZ

Camera source number is the same parameter when you use “cv2.VideoCapture”.

NO.1 new problems,I test a video with 3 minutes and 30 seconds,but I just get a 19s detect video result .After 20s,it quickly shut down,and any error is not exist,common finished.I am puzzled; NO.2 I want to know that this demo how to train my own dataset?I see that there are some .py to make a datatest then train that NO.3 do you have some other community APPs?I can add you to talk about this demo; @GajuuzZ

RhInEs-liao avatar Oct 04 '21 02:10 RhInEs-liao

@GajuuzZ

RhInEs-liao avatar Oct 05 '21 13:10 RhInEs-liao

  1. Maybe my CameraLoader is not that perfect. You can switch between two classes as i comment in the class description or use the traditional way. I will see the problem later when I have time.
  2. This is not a tutorial project for beginners. Just for the guideline. I already provide that stuff as much as I can for the training. If you want to know you need to hack it by yourself.
  3. I can't help you that much. I have my things to do too.

GajuuzZ avatar Oct 05 '21 17:10 GajuuzZ

当您使用“cv2.VideoCapture”时,摄像机源编号是相同的参数。

NO.1 新问题,我测试了一个3分30秒的视频,但是我只是得到一个19s的检测视频结果。20s后,它很快就关机了,没有任何错误存在,常见的结束了。我很困惑; NO.2 我想知道这个demo怎么训练我自己的数据集?我看到有一些.py做一个datatest然后训练 NO.3你还有其他一些社区APP吗?我可以加你谈谈这个演示; @GajuuzZ 我也遇到这个问题,为啥呢,而且似乎会跳帧

WangJi1022 avatar Oct 08 '21 07:10 WangJi1022

new problems,I test a video with 3 minutes and 30 seconds,but I just get a 19s detect video result .After 20s,it quickly shut down,and any error is not exist,common finished.I am puzzled;

Have you solved this problem?

af-doom avatar Nov 27 '21 05:11 af-doom

new problems,I test a video with 3 minutes and 30 seconds,but I just get a 19s detect video result .After 20s,it quickly shut down,and any error is not exist,common finished.I am puzzled;

This one is due to the buffer queue size not big enough. If your video is long then you must choose the larger buffer for your CamLoader_Q.

heavenluv avatar Mar 18 '22 03:03 heavenluv