andreas128 / RePaint

Official PyTorch Code and Models of "RePaint: Inpainting using Denoising Diffusion Probabilistic Models", CVPR 2022
1.99k stars 160 forks source link

TypeError: expected str, bytes or os.PathLike object, not NoneType #52

Open XiruiTeng opened 8 months ago

XiruiTeng commented 8 months ago

Traceback (most recent call last): File "test.py", line 179, in conf_arg.update(yamlread(args.get('conf_path'))) File "/root/test/RePaint/utils/init.py", line 29, in yamlread return yaml.safe_load(txtread(path=path)) File "/root/test/RePaint/utils/init.py", line 23, in txtread path = os.path.expanduser(path) File "/root/anaconda3/envs/try/lib/python3.7/posixpath.py", line 235, in expanduser path = os.fspath(path) TypeError: expected str, bytes or os.PathLike object, not NoneType? I meet this error can anyone help me ?

XiruiTeng commented 8 months ago

Do you find the solution? I meet this error too

I ran the project again and this error disappeared. Amazing.

Lxq-0417 commented 3 months ago

I meet this error too