如何解决OSError [Errno 22]无效的参数

时间:2020-02-12 00:21:04

标签: python deep-learning invalid-argument

我正在尝试创建一个伪造的网络摄像头流,以在视频会议中尝试我的Deepfake。但是,我有一个OSError [Errno 22]无效的参数。 我输入以下行:

python faceit_live.py webcam me_to_raphy

这是出现的全部错误:

Traceback (most recent call last):
  File "faceit_live.py", line 429, in <module>
    faceit.convert(args.video, duration = args.duration, swap_model = args.swap_model, face_filter = args.face_filter, start_time = args.start_time, photos = args.photos, crop_x = args.crop_x, width = args.width, side_by_side = args.side_by_side, live = True, webcam = True)
  File "faceit_live.py", line 270, in convert
    camera = pyfakewebcam.FakeWebcam('/dev/video1', 640, 480)
  File "/opt/conda/lib/python3.6/site-packages/pyfakewebcam/pyfakewebcam.py", line 54, in __init__
    fcntl.ioctl(self._video_device, _v4l2.VIDIOC_S_FMT, self._settings)
OSError: [Errno 22] Invalid argument

0 个答案:

没有答案