fix diffusers codebase (#183)
This commit is contained in:
@@ -1968,7 +1968,7 @@ from diffusers import AutoPipelineForText2Image
|
|||||||
import torch
|
import torch
|
||||||
|
|
||||||
pipeline = AutoPipelineForText2Image.from_pretrained('{base_model}', torch_dtype={dtype}).to('cuda')
|
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 = pipeline('{instance_prompt if not widgets else self.sample_config.prompts[0]}').images[0]
|
||||||
image.save("my_image.png")
|
image.save("my_image.png")
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user