CarlosRiverMe commited on
Commit
18eb372
1 Parent(s): 3449e77

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +6 -7
README.md CHANGED
@@ -39,15 +39,14 @@ Example prompts:
39
  ### 2. Using Python Code
40
 
41
  ```python
42
- from diffusers import StableDiffusionPipeline
43
  import torch
44
 
45
- pipeline = StableDiffusionPipeline.from_pretrained(
46
- "CarlosRiverMe/SimpleTuner-stable-diffusion-3.5-large-ZukyTheDog",
47
- torch_dtype=torch.float16
48
- )
49
- pipeline.to("cuda")
50
 
51
  prompt = "A photo of ZukyTheDog sitting in a garden"
52
- image = pipeline(prompt).images[0]
53
  image.save("generated_image.png")
 
39
  ### 2. Using Python Code
40
 
41
  ```python
42
+ from diffusers import StableDiffusion3Pipeline
43
  import torch
44
 
45
+ pipe = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3.5-large", torch_dtype=torch.bfloat16, variant = 'fp16', use_safetensors = True)
46
+
47
+ pipe.to("cuda")
48
+ pipe.load_lora_weights("CarlosRiverMe/SimpleTuner-stable-diffusion-3.5-large-ZukyTheDog", weight_name="pytorch_lora_weights.safetensors")
 
49
 
50
  prompt = "A photo of ZukyTheDog sitting in a garden"
51
+ image = pipe(prompt).images[0]
52
  image.save("generated_image.png")