runtime error
processor.py", line 24, in <module> from .lora import LoRACompatibleLinear, LoRALinearLayer File "/home/user/.local/lib/python3.10/site-packages/diffusers/models/lora.py", line 21, in <module> from ..loaders import PatchedLoraProjection, text_encoder_attn_modules, text_encoder_mlp_modules File "/home/user/.local/lib/python3.10/site-packages/diffusers/loaders.py", line 625, in <module> class TextualInversionLoaderMixin: File "/home/user/.local/lib/python3.10/site-packages/diffusers/loaders.py", line 691, in TextualInversionLoaderMixin tokenizer: Optional[PreTrainedTokenizer] = None, NameError: name 'PreTrainedTokenizer' is not defined The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/user/app/app.py", line 17, in <module> image_pipe = DDPMPipeline.from_pretrained(pipeline_name).to(device) File "/home/user/.local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 1105, in from_pretrained loaded_sub_model = load_sub_model( File "/home/user/.local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 391, in load_sub_model class_obj, class_candidates = get_class_obj_and_candidates( File "/home/user/.local/lib/python3.10/site-packages/diffusers/pipelines/pipeline_utils.py", line 319, in get_class_obj_and_candidates class_obj = getattr(library, class_name) File "/home/user/.local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 675, in __getattr__ value = getattr(module, name) File "/home/user/.local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 674, in __getattr__ module = self._get_module(self._class_to_module[name]) File "/home/user/.local/lib/python3.10/site-packages/diffusers/utils/import_utils.py", line 686, in _get_module raise RuntimeError( RuntimeError: Failed to import diffusers.models.unet_2d because of the following error (look up to see its traceback): name 'PreTrainedTokenizer' is not defined
Container logs:
Fetching error logs...