GithubHelp home page GithubHelp logo

Comments (4)

sayakpaul avatar sayakpaul commented on June 8, 2024

Please provide a reproducible snippet.

Cc: @DN6

from diffusers.

knoopx avatar knoopx commented on June 8, 2024

@sayakpaul

Ran:

StableDiffusionPipeline.from_single_file("checkpoint-with-extra-keys.safetensor").

Got:

  File ".venv/lib/python3.11/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
    return fn(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/diffusers/loaders/single_file.py", line 289, in from_single_file
    components = build_sub_model_components(
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/diffusers/loaders/single_file.py", line 75, in build_sub_model_components
    vae_components = create_diffusers_vae_model_from_ldm(
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/diffusers/loaders/single_file_utils.py", line 1391, in create_diffusers_vae_model_from_ldm
    f"Some weights of the model checkpoint were not used when initializing {vae.__name__}: \n {[', '.join(unexpected_keys)]}"
                                                                            ^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/diffusers/models/modeling_utils.py", line 218, in __getattr__
    return super().__getattr__(name)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/torch/nn/modules/module.py", line 1688, in __getattr__
    raise AttributeError(f"'{type(self).__name__}' object has no attribute '{name}'")
AttributeError: 'AutoencoderKL' object has no attribute '__name__'

Expected:

Some weights of the model checkpoint were not used when initializing AutoencoderKL: [...]

from diffusers.

sayakpaul avatar sayakpaul commented on June 8, 2024

This is still not fully reproducible.

from diffusers.

yiyixuxu avatar yiyixuxu commented on June 8, 2024

@knoopx
we just merged this PR #7496
can you update the diffusers and try again?

if still not working, please provide a reproducible code example with inputs and checkpoints that accessible to us

from diffusers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.