ahrm / UnstableFusion

A Stable Diffusion desktop frontend with inpainting, img2img and more!
GNU General Public License v3.0
1.25k stars 86 forks source link

error with the generation of an image #49

Open osafaimal opened 1 year ago

osafaimal commented 1 year ago

hello i have this error and i don't find how fix it:

Traceback (most recent call last):
  File "/home/roza/Documents/UnstableFusion/unstablefusion.py", line 897, in handle_generate_button
    if type(self.get_handler()) == ServerStableDiffusionHandler:
  File "/home/roza/Documents/UnstableFusion/unstablefusion.py", line 460, in get_handler
    return self.stable_diffusion_manager.get_handler()
  File "/home/roza/Documents/UnstableFusion/unstablefusion.py", line 329, in get_handler
    return self.get_local_handler(self.get_huggingface_token())
  File "/home/roza/Documents/UnstableFusion/unstablefusion.py", line 312, in get_local_handler
    self.cached_local_handler = StableDiffusionHandler(token)
  File "/home/roza/Documents/UnstableFusion/diffusionserver.py", line 36, in __init__
    self.text2img = StableDiffusionPipeline.from_pretrained(
  File "/home/roza/Documents/UnstableFusion/Unstablefusion/UF/lib/python3.10/site-packages/diffusers/pipeline_utils.py", line 516, in from_pretrained
    raise ValueError(
ValueError: The component <class 'transformers.models.clip.feature_extraction_clip.CLIPFeatureExtractor'> of <class 'diffusers.pipelines.stable_diffusion.pipeline_stable_diffusion.StableDiffusionPipeline'> cannot be loaded as it does not seem to have any of the loading methods defined in {'ModelMixin': ['save_pretrained', 'from_pretrained'], 'SchedulerMixin': ['save_config', 'from_config'], 'DiffusionPipeline': ['save_pretrained', 'from_pretrained'], 'OnnxRuntimeModel': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizer': ['save_pretrained', 'from_pretrained'], 'PreTrainedTokenizerFast': ['save_pretrained', 'from_pretrained'], 'PreTrainedModel': ['save_pretrained', 'from_pretrained'], 'FeatureExtractionMixin': ['save_pretrained', 'from_pretrained']}.

thx for your help