在PaddleDetection用pphuman检测跌倒,我想启动摄像头报错了
命令:
C:\Users\13708\PaddleDetection\deploy\pipeline\pipeline.py --config deploy/pipeline/config/examples/infer_cfg_fall_down-Copy-local.yml --camera_id 0 --device=gpu
开始运行了一会儿才报错
error:
Traceback (most recent call last):
File "C:\Users\13708\PaddleDetection\deploy\pipeline\pipeline.py", line 1103, in
main()
File "C:\Users\13708\PaddleDetection\deploy\pipeline\pipeline.py", line 1088, in main
pipeline = Pipeline(FLAGS, cfg)
File "C:\Users\13708\PaddleDetection\deploy\pipeline\pipeline.py", line 89, in init
self.predictor.set_file_name(self.input)
File "C:\Users\13708\PaddleDetection\deploy\pipeline\pipeline.py", line 476, in set_file_name
self.file_name = os.path.split(path)[-1]
File "C:\Users\13708\AppData\Local\Programs\Python\Python39\lib\ntpath.py", line 185, in split
p = os.fspath§
TypeError: expected str, bytes or os.PathLike object, not int