You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run git lfs install followed by git lfs pull in the folder you cloned.
#133
Open
catnomice opened this issue
Apr 22, 2024
· 4 comments
报错如下:
Traceback (most recent call last):
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 109, in load_state_dict
return torch.load(checkpoint_file, map_location="cpu")
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\torch\serialization.py", line 1033, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\AniPortrait-main\AniPortrait\scripts\audio2vid.py", line 268, in
main()
File "D:\AniPortrait-main\AniPortrait\scripts\audio2vid.py", line 78, in main
reference_unet = UNet2DConditionModel.from_pretrained(
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 800, in from_pretrained
state_dict = load_state_dict(model_file, variant=variant)
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 116, in load_state_dict
raise OSError(
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run git lfs install followed by git lfs pull in the folder you cloned.
我使用anaconda3在windows11系统上尝试部署此项目,当我安装完成requirement.txt后,我尝试运行该项目,结果一个我无法解决的报错发生了。
从字面意思上看,这似乎意味着我应该使用git lfs工具管理以上.py文件,但是我尝试了安装git lfs、重新clone项目、再次安装requirement.txt、追踪“*.py”文件后,依旧无法成功运行git lfs pull命令,它在一行空白后直接终止了运行,没有任何反馈,如下图:
与此相对的,git lfs install、git lfs --version命令看起来运行得很好。
我注意到,该项目似乎并未包含.gitattributes项目,这是否意味着git lfs并不是该项目所必需的?那么这个报错是什么原因引发的?源自预训练模型?
我该怎么解决这个报错?
The text was updated successfully, but these errors were encountered:
Please download all the pre-trained model files according to README.
So that you can address the model loading issue.
Also, the command of 'git lfs pull' is used to download large file from github or huggingface.
报错如下:
Traceback (most recent call last):
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 109, in load_state_dict
return torch.load(checkpoint_file, map_location="cpu")
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\torch\serialization.py", line 815, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\torch\serialization.py", line 1033, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: invalid load key, 'v'.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\AniPortrait-main\AniPortrait\scripts\audio2vid.py", line 268, in
main()
File "D:\AniPortrait-main\AniPortrait\scripts\audio2vid.py", line 78, in main
reference_unet = UNet2DConditionModel.from_pretrained(
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 800, in from_pretrained
state_dict = load_state_dict(model_file, variant=variant)
File "C:\Users\username\anaconda3\envs\aniPortrait\lib\site-packages\diffusers\models\modeling_utils.py", line 116, in load_state_dict
raise OSError(
OSError: You seem to have cloned a repository without having git-lfs installed. Please install git-lfs and run
git lfs install
followed bygit lfs pull
in the folder you cloned.我使用anaconda3在windows11系统上尝试部署此项目,当我安装完成requirement.txt后,我尝试运行该项目,结果一个我无法解决的报错发生了。
从字面意思上看,这似乎意味着我应该使用git lfs工具管理以上.py文件,但是我尝试了安装git lfs、重新clone项目、再次安装requirement.txt、追踪“*.py”文件后,依旧无法成功运行git lfs pull命令,它在一行空白后直接终止了运行,没有任何反馈,如下图:
与此相对的,git lfs install、git lfs --version命令看起来运行得很好。
我注意到,该项目似乎并未包含.gitattributes项目,这是否意味着git lfs并不是该项目所必需的?那么这个报错是什么原因引发的?源自预训练模型?
我该怎么解决这个报错?
The text was updated successfully, but these errors were encountered: