fix diffusers codebase (#183)

This commit is contained in:
apolinário
2024-09-21 12:50:29 -05:00
committed by GitHub
parent d97c55cd96
commit bc693488eb

View File

@@ -1968,7 +1968,7 @@ from diffusers import AutoPipelineForText2Image
import torch
pipeline = AutoPipelineForText2Image.from_pretrained('{base_model}', torch_dtype={dtype}).to('cuda')
pipeline.load_lora_weights('{repo_id}', weight_name='{self.job.name}')
pipeline.load_lora_weights('{repo_id}', weight_name='{self.job.name}.safetensors')
image = pipeline('{instance_prompt if not widgets else self.sample_config.prompts[0]}').images[0]
image.save("my_image.png")
```