andreas128 / RePaint

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

Has anyone else had this problem? #47

Open Supzekun opened 8 months ago

Supzekun commented 8 months ago

when python test.py --conf_path confs/face_example.yml got error

Traceback (most recent call last): File "test.py", line 29, in from guided_diffusion import dist_util File "/data/123/szk/RePaint-main/RePaint-main/guided_diffusion/dist_util.py", line 23, in import blobfile as bf File "/home/123/.local/lib/python3.8/site-packages/blobfile/init.py", line 6, in from blobfile._ops import ( File "/home/123/.local/lib/python3.8/site-packages/blobfile/_ops.py", line 19, in from blobfile._common import DirEntry, Stat, RemoteOrLocalPath File "/home/123/.local/lib/python3.8/site-packages/blobfile/_common.py", line 1025, in RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]] TypeError: 'ABCMeta' object is not subscriptable

mushen12138 commented 8 months ago

我也遇到了,有什么解决方法吗?

lszyy001 commented 8 months ago

change the RemoteOrLocalPath = Union[str, BlobPathLike, os.PathLike[str]] to RemoteOrLocalPath = Union[str, BlobPathLike, "os.PathLike[str]"] then it works.

jbnjvc10000 commented 7 months ago

It looks like the error is related to "blobfile" This may be because linux has a different file structure(or file path?) https://pypi.org/project/blobfile/