moments_models icon indicating copy to clipboard operation
moments_models copied to clipboard

test_video.py - AttributeError: 'NoneType' object has no attribute 'groups'

Open inspired27 opened this issue 6 years ago • 2 comments

Hi,

I am trying to inference against a test video /test_1.mp4 and I am getting the following error any idea I am running on Windows, Anaconda, Python 3.6, Pytorch 0.3.0 etc. The test_model.py works but not video.

(momentsintime) C:\Users\Pablo\moments_models>python test_video.py --video_file /test_1.mp4 Extracting frames using ffmpeg... Traceback (most recent call last): File "test_video.py", line 120, in frames = extract_frames(args.video_file, args.num_segments) File "test_video.py", line 50, in extract_frames duration = re_duration.search(str(output[1])).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups'

inspired27 avatar Aug 15 '18 06:08 inspired27

I falling the same error.

root@AI-K3-U18-c9n742-01:/ai/moments_models# python3 test_video.py --video_file path/to/video.mp4 --arch resnet50 Extracting frames using ffmpeg... Traceback (most recent call last): File "test_video.py", line 61, in frames = extract_frames(args.video_file, args.num_segments) File "/ai/moments_models/utils.py", line 22, in extract_frames duration = re_duration.search(str(output[1])).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups'

595448755 avatar Apr 25 '19 07:04 595448755

Same here. Any updates?

Extracting frames using ffmpeg... Traceback (most recent call last): File "C:\Users\tufan001\OneDrive - Wageningen University & Research\PycharmProjects\TimeSeries\keypoints_paper\analysis\Pretrained_models\Moments\moments_models\test_video.py", line 62, in frames = extract_frames(args.video_file, args.num_segments) File "C:\Users\tufan001\OneDrive - Wageningen University & Research\PycharmProjects\TimeSeries\keypoints_paper\analysis\Pretrained_models\Moments\moments_models\utils.py", line 22, in extract_frames duration = re_duration.search(str(output[1])).groups()[0] AttributeError: 'NoneType' object has no attribute 'groups' ​

mtufano avatar Mar 31 '23 13:03 mtufano