Skip to content

after running inherence or gradio file #261

Open
@a12343g

Description

@a12343g

Error i got - File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1126, in _find_and_load_unlocked
File "", line 241, in _call_with_frames_removed
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/autoencoders/init.py", line 1, in
from .autoencoder_asym_kl import AsymmetricAutoencoderKL
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/autoencoders/autoencoder_asym_kl.py", line 23, in
from .vae import DecoderOutput, DiagonalGaussianDistribution, Encoder, MaskConditionDecoder
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/autoencoders/vae.py", line 25, in
from ..unets.unet_2d_blocks import (
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/unets/init.py", line 6, in
from .unet_2d import UNet2DModel
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/unets/unet_2d.py", line 24, in
from .unet_2d_blocks import UNetMidBlock2D, get_down_block, get_up_block
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/unets/unet_2d_blocks.py", line 36, in
from ..transformers.dual_transformer_2d import DualTransformer2DModel
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/transformers/init.py", line 13, in
from .prior_transformer import PriorTransformer
File "/usr/local/lib/python3.11/dist-packages/diffusers/models/transformers/prior_transformer.py", line 9, in
from ...loaders import PeftAdapterMixin, UNet2DConditionLoadersMixin
File "", line 1229, in _handle_fromlist
File "/usr/local/lib/python3.11/dist-packages/diffusers/utils/import_utils.py", line 820, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/diffusers/utils/import_utils.py", line 832, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.unet because of the following error (look up to see its traceback):
cannot import name 'clear_device_cache' from 'accelerate.utils.memory' (/usr/local/lib/python3.11/dist-packages/accelerate/utils/memory.py)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in _run_code
File "/content/LatentSync/scripts/inference.py", line 19, in
from diffusers import AutoencoderKL, DDIMScheduler
File "", line 1229, in _handle_fromlist
File "/usr/local/lib/python3.11/dist-packages/diffusers/utils/import_utils.py", line 821, in getattr
value = getattr(module, name)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/diffusers/utils/import_utils.py", line 820, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/diffusers/utils/import_utils.py", line 832, in _get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.models.autoencoders.autoencoder_kl because of the following error (look up to see its traceback):
Failed to import diffusers.loaders.unet because of the following error (look up to see its traceback):
cannot import name 'clear_device_cache' from 'accelerate.utils.memory' (/usr/local/lib/python3.11/dist-packages/accelerate/utils/memory.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions