deep-head-pose icon indicating copy to clipboard operation
deep-head-pose copied to clipboard

VIDIOC_REQBUFS: Inappropriate ioctl for device

Open ashishsr123 opened this issue 5 years ago • 0 comments

!python code/test_on_video_dlib.py --snapshot models/hopenet_robust_alpha1.pkl --face_model dlib-models/mmod_human_face_detector.dat --video data/sample_video.mp4 --output_string new_output --n_frames 2000 --fps 6

Loading snapshot. Loading data. /opt/anaconda3/lib/python3.7/site-packages/torchvision/transforms/transforms.py:207: UserWarning: The use of the transforms.Scale transform is deprecated, please use transforms.Resize instead. warnings.warn("The use of the transforms.Scale transform is deprecated, " + Ready to test network. [mov,mp4,m4a,3gp,3g2,mj2 @ 0x563f005ae700] moov atom not found VIDIOC_REQBUFS: Inappropriate ioctl for device 1

image

I get a video output of 5kb , which cannot be played.

I changed following code in 'test_on_video_dlib.py':

     #idx_tensor = [idx for idx in xrange(66)] <-- commented the code and used below,as  I was getting error
      idx_tensor = [idx for idx in range(66)]

Please let me know what is the issue.

ashishsr123 avatar Apr 03 '19 18:04 ashishsr123