Skip to content

遇到了文件缺失的问题,请大佬解决。 #240

Description

@xunshuoyang

(oo) D:\xm\ootd\OOTDiffusion>python run/gradio_ootd.py
D:\Anaconda\envs\oo\lib\site-packages\transformers\utils\generic.py:441: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
D:\Anaconda\envs\oo\lib\site-packages\transformers\utils\generic.py:309: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
W0429 14:30:32.966158 42504 site-packages\torch\distributed\elastic\multiprocessing\redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.
D:\Anaconda\envs\oo\lib\site-packages\transformers\utils\generic.py:309: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
_torch_pytree._register_pytree_node(
D:\Anaconda\envs\oo\lib\site-packages\diffusers\utils\outputs.py:63: FutureWarning: torch.utils._pytree._register_pytree_node is deprecated. Please use torch.utils._pytree.register_pytree_node instead.
torch.utils._pytree._register_pytree_node(
Traceback (most recent call last):
File "D:\Anaconda\envs\oo\lib\site-packages\diffusers\configuration_utils.py", line 371, in load_config
config_file = hf_hub_download(
File "D:\Anaconda\envs\oo\lib\site-packages\huggingface_hub\utils_validators.py", line 106, in _inner_fn
validate_repo_id(arg_value)
File "D:\Anaconda\envs\oo\lib\site-packages\huggingface_hub\utils_validators.py", line 154, in validate_repo_id
raise HFValidationError(
huggingface_hub.errors.HFValidationError: Repo id must be in the form 'repo_name' or 'namespace/repo_name': '../checkpoints/ootd'. Use repo_type argument if needed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\xm\ootd\OOTDiffusion\run\gradio_ootd.py", line 22, in
ootd_model_hd = OOTDiffusionHD(0)
File "D:\xm\ootd\OOTDiffusion\ootd\inference_ootd_hd.py", line 37, in init
vae = AutoencoderKL.from_pretrained(
File "D:\Anaconda\envs\oo\lib\site-packages\diffusers\models\modeling_utils.py", line 712, in from_pretrained
config, unused_kwargs, commit_hash = cls.load_config(
File "D:\Anaconda\envs\oo\lib\site-packages\diffusers\configuration_utils.py", line 407, in load_config
raise EnvironmentError(
OSError: We couldn't connect to 'https://huggingface.co' to load this model, couldn't find it in the cached files and it looks like ../checkpoints/ootd is not the path to a directory containing a config.json file.
Checkout your internet connection or see how to run the library in offline mode at 'https://huggingface.co/docs/diffusers/installation#offline-mode'.

Image
checkpoints文件下是有对应文件的

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions