painebenjamin / app.enfugue.ai

ENFUGUE is an open-source web app for making studio-grade images and video using generative AI.
GNU General Public License v3.0
686 stars 65 forks source link

Image generation does not work with every LyCORIS (I tested) #143

Open Temder opened 6 months ago

Temder commented 6 months ago

Every time I add a LyCORIS to a model and click on the generation button I get this error: grafik

This is the full log: grafik

Am I doing something wrong?

RocketSmash9000 commented 1 week ago

I am getting a similar error, though it happens with loras and lycoris.

Traceback (most recent call last):
  File "enfugue\diffusion\process.py", line 199, in run

    response["result"] = self.handle(instruction_id, instruction_action, instruction_payload)

  File "enfugue\diffusion\process.py", line 260, in handle

    return self.execute_diffusion_plan(

  File "enfugue\diffusion\process.py", line 304, in execute_diffusion_plan

    return plan.execute(

  File "enfugue\diffusion\invocation\layers.py", line 1496, in execute

    images, nsfw = self.execute_inference(

  File "enfugue\diffusion\invocation\layers.py", line 1726, in execute_inference

    result = pipeline(

  File "enfugue\diffusion\manager.py", line 5400, in __call__

    pipe = self.pipeline # type: ignore

  File "enfugue\diffusion\manager.py", line 3443, in pipeline

    pipeline.load_lora_weights(lora, multiplier=weight)

  File "enfugue\diffusion\pipeline.py", line 1269, in load_lora_weights

    return self.load_flexible_lora_weights(

  File "enfugue\diffusion\pipeline.py", line 1363, in load_flexible_lora_weights

    state_dict = load_state_dict(pretrained_model_name_or_path_or_dict) # type: ignore[arg-type]

  File "enfugue\diffusion\util\torch_util\model_util.py", line 53, in load_state_dict

    raise IOError(f"Recevied exception reading checkpoint {path}, please ensure file integrity.\n{type(first_error).__name__}: {first_error}")

OSError: Recevied exception reading checkpoint C:\Users\*user*\.cache\enfugue\lora\*nameOfLora*.safetensors, please ensure file integrity.

SafetensorError: Error while deserializing header: HeaderTooLarge

What is even weirder is that I could previously run loras perfectly. Now it doesn't want to run anything.