feelatkeen commited on
Commit
967c36c
1 Parent(s): a469cc8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -4
README.md CHANGED
@@ -46,12 +46,17 @@ Weights for this model are available in Safetensors format.
46
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
47
 
48
  ```py
49
- from diffusers import AutoPipelineForText2Image
 
50
  import torch
51
 
52
- pipeline = AutoPipelineForText2Image.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=torch.float16).to('cuda')
53
- pipeline.load_lora_weights('artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl', weight_name='PS1Redmond-PS1Game-Playstation1Graphics.safetensors')
54
- image = pipeline('harry potter game, playstation 1 graphics, PS1 Game, ').images[0]
 
 
 
 
55
  ```
56
 
57
  For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)
 
46
  ## Use it with the [🧨 diffusers library](https://github.com/huggingface/diffusers)
47
 
48
  ```py
49
+
50
+ from diffusers import DiffusionPipeline
51
  import torch
52
 
53
+ pipeline = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-refiner-1.0")
54
+ pipeline.load_lora_weights("artificialguybr/ps1redmond-ps1-game-graphics-lora-for-sdxl")
55
+ pipeline.enable_model_cpu_offload()
56
+ init_image = load_image("https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/cat.png")
57
+
58
+ prompt = "playstation 1 graphics"
59
+ image = pipeline(prompt, image=init_image).images[0]
60
  ```
61
 
62
  For more details, including weighting, merging and fusing LoRAs, check the [documentation on loading LoRAs in diffusers](https://huggingface.co/docs/diffusers/main/en/using-diffusers/loading_adapters)