Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoneType' object has no attribute 'release' #41

Open
aaronhan92 opened this issue Sep 25, 2018 · 2 comments
Open

NoneType' object has no attribute 'release' #41

aaronhan92 opened this issue Sep 25, 2018 · 2 comments

Comments

@aaronhan92
Copy link

File "inference_video_face.py", line 101, in
out.release()
AttributeError: 'NoneType' object has no attribute 'release'

@xiangyann
Copy link
Contributor

Is test.mp4 present in the media folder?

@eypros
Copy link

eypros commented Dec 14, 2018

You need to provide a path to the an actual video in your system since "test.mp4" used by the author to test the model in not provided.
Lines to be changed are:
#35: cap = cv2.VideoCapture("./media/test.mp4")
and
#59: out = cv2.VideoWriter("./media/test_out.avi", 0, 25.0, (w, h))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants