FileNotFoundError: [Errno 2] No such file or directory: '${cfg_file}'
Author: tesonhubCreated Mar 26, 2024Updated Apr 25, 2025
I had this error while trying to run the code using a usb camera and cpu only. Is there a way to resolve this issue?
(alphapose) C:\Users\Teson\AlphaPose>python scripts/demo_inference.py --cfg ${cfg_file} --checkpoint ${trained_model} --outdir examples/res --vis --webcam 0 Traceback (most recent call last): File "scripts/demo_inference.py", line 88, in cfg = update_config(args.cfg) File "c:\\users\teson\alphapose\alphapose\\utils\config.py", line 6, in update_config with open(config_file) as f: FileNotFoundError: [Errno 2] No such file or directory: '${cfg_file}'
Source: MVIG-SJTU/AlphaPose