Skip to content

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

@inspired27

Description

@inspired27

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions