Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error after entering Python app.py #56

Closed
J-Ai-57 opened this issue Dec 26, 2024 · 1 comment
Closed

error after entering Python app.py #56

J-Ai-57 opened this issue Dec 26, 2024 · 1 comment

Comments

@J-Ai-57
Copy link

J-Ai-57 commented Dec 26, 2024

(venv) D:\ai\StableAnimator>python app.py
D:\ai\StableAnimator\venv\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:\ai\StableAnimator\venv\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:\ai\StableAnimator\venv\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:\ai\StableAnimator\venv\Lib\site-packages\albumentations_init
.py:24: UserWarning: A new version of Albumentations is available: 1.4.24 (you have 1.4.23). Upgrade using: pip install -U albumentations. To disable automatic update checks, set the environment variable NO_ALBUMENTATIONS_UPDATE to 1.
check_for_updates()
Traceback (most recent call last):
File "D:\ai\StableAnimator\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 920, in get_module
return importlib.import_module("." + module_name, self.name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jeffr\miniconda3\Lib\importlib_init
.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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 "D:\ai\StableAnimator\venv\Lib\site-packages\diffusers\loaders\ip_adapter.py", line 36, in
from transformers import CLIPImageProcessor, CLIPVisionModelWithProjection, SiglipImageProcessor, SiglipVisionModel
ImportError: cannot import name 'SiglipImageProcessor' from 'transformers' (D:\ai\StableAnimator\venv\Lib\site-packages\transformers_init
.py)

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

Traceback (most recent call last):
File "D:\ai\StableAnimator\app.py", line 16, in
from animation.pipelines.inference_pipeline_animation import InferenceAnimationPipeline
File "D:\ai\StableAnimator\animation\pipelines\inference_pipeline_animation.py", line 11, in
from diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion import retrieve_timesteps
File "D:\ai\StableAnimator\venv\Lib\site-packages\diffusers\pipelines\stable_diffusion\pipeline_stable_diffusion.py", line 24, in
from ...loaders import FromSingleFileMixin, IPAdapterMixin, StableDiffusionLoraLoaderMixin, TextualInversionLoaderMixin
File "", line 1229, in _handle_fromlist
File "D:\ai\StableAnimator\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 910, in getattr
module = self._get_module(self._class_to_module[name])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\ai\StableAnimator\venv\Lib\site-packages\diffusers\utils\import_utils.py", line 922, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.ip_adapter because of the following error (look up to see its traceback):
cannot import name 'SiglipImageProcessor' from 'transformers' (D:\ai\StableAnimator\venv\Lib\site-packages\transformers_init
.py)

(venv) D:\ai\StableAnimator>

@Francis-Rings
Copy link
Owner

Hi, please refer to #35. The issue seems to be that you haven't installed the correct version of the Transformers dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants