RePaint icon indicating copy to clipboard operation
RePaint copied to clipboard

Has anyone else had this problem?

Open Supzekun opened this issue 1 year ago • 3 comments

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

Supzekun avatar Oct 30 '23 01:10 Supzekun

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

mushen12138 avatar Nov 01 '23 08:11 mushen12138

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

lszyy001 avatar Nov 21 '23 15:11 lszyy001

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/

jbnjvc10000 avatar Dec 16 '23 01:12 jbnjvc10000