lllyasviel / lllyasviel/stable-diffusion-webui-forge
photomaker2 - error while starting the application
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 13k
- Forks
- 1.7k
- PR merge metrics
- No merged PRs in 30d
Description
`i\photomaker2.git\app\env && python app.py
Traceback (most recent call last):
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\diffusers\utils\import_utils.py", line 883, in get_module
return importlib.import_module("." + module_name, self.name)
File "D:\pinokio\bin\miniconda\lib\importlib_init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "", line 883, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\diffusers\loaders\lora_pipeline.py", line 34, in
from .lora_base import ( # noqa
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\diffusers\loaders\lora_base.py", line 56, in
from peft.tuners.tuners_utils import BaseTunerLayer
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\peft_init.py", line 17, in
from .auto import (
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\peft\auto.py", line 32, in
from .peft_model import (
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\peft\peft_model.py", line 37, in
from transformers import Cache, DynamicCache, EncoderDecoderCache, HybridCache, PreTrainedModel
ImportError: cannot import name 'HybridCache' from 'transformers' (D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\transformers_init.py)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\pinokio\api\photomaker2.git\app\app.py", line 15, in
from pipeline_t2i_adapter import PhotoMakerStableDiffusionXLAdapterPipeline
File "D:\pinokio\api\photomaker2.git\app\pipeline_t2i_adapter.py", line 36, in
from diffusers.loaders import (
File "", line 1075, in _handle_fromlist
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\diffusers\utils\import_utils.py", line 873, in getattr
module = self._get_module(self._class_to_module[name])
File "D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\diffusers\utils\import_utils.py", line 885, in get_module
raise RuntimeError(
RuntimeError: Failed to import diffusers.loaders.lora_pipeline because of the following error (look up to see its traceback):
cannot import name 'HybridCache' from 'transformers' (D:\pinokio\api\photomaker2.git\app\env\lib\site-packages\transformers_init.py)
(env) (base) D:\pinokio\api\photomaker2.git\app> `
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with app/app.py and app/pipeline_t2i_adapter.py, then inspect the installed dependency versions implicated by the traceback, especially peft and transformers. The work is done when launching app.py no longer fails because transformers lacks HybridCache.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100