radames commited on
Commit
b250d42
1 Parent(s): 5331cbb

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +10 -6
README.md CHANGED
@@ -8,7 +8,7 @@ base_model: stabilityai/sd-turbo
8
  Model trained with LoRA implementation of Diffusion DPO Read more [here](https://github.com/huggingface/diffusers/tree/main/examples/research_projects/diffusion_dpo)
9
 
10
 
11
- Base Model: https://huggingface.co/stabilityai/stable-diffusion-2-1
12
 
13
  ## Running with [🧨 diffusers library](https://github.com/huggingface/diffusers)
14
 
@@ -25,17 +25,20 @@ pipe = AutoPipelineForText2Image.from_pretrained(
25
  variant="fp16",
26
  )
27
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(
28
- pipe.scheduler.config, use_karras_sigmas=True
 
 
29
  )
 
30
  pipe.to("cuda");
31
 
32
  seed = 12341234123
33
  prompt = "professional portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography"
34
  negative_prompt = "3d render, cartoon, drawing, art, low light, blur, pixelated, low resolution, black and white"
35
- num_inference_steps = 20
36
  height = 1024
37
  width = height
38
- guidance_scale = 20
39
 
40
  pipe.unload_lora_weights()
41
  pipe.load_lora_weights(
@@ -44,7 +47,7 @@ pipe.load_lora_weights(
44
  # weight_name="pytorch_lora_weights.safetensors",
45
  adapter_name="sdxl-dpo-lora",
46
  )
47
- pipe.set_adapters(["sdxl-dpo-lora"], adapter_weights=[1.0])
48
  generator = torch.Generator().manual_seed(seed)
49
  with_dpo = pipe(
50
  prompt=prompt,
@@ -62,4 +65,5 @@ with_dpo
62
 
63
  adapter_weights
64
 
65
- ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6064e095abd8d3692e3e2ed6/Oto0TMZ4HTzThhyIv4FN0.jpeg)
 
 
8
  Model trained with LoRA implementation of Diffusion DPO Read more [here](https://github.com/huggingface/diffusers/tree/main/examples/research_projects/diffusion_dpo)
9
 
10
 
11
+ Base Model: https://huggingface.co/stabilityai/stable-diffusion-xl-base-1.0
12
 
13
  ## Running with [🧨 diffusers library](https://github.com/huggingface/diffusers)
14
 
 
25
  variant="fp16",
26
  )
27
  pipe.scheduler = DPMSolverMultistepScheduler.from_config(
28
+ pipe.scheduler.config,
29
+ use_karras_sigmas=True,
30
+ algorithm_type="sde-dpmsolver++"
31
  )
32
+
33
  pipe.to("cuda");
34
 
35
  seed = 12341234123
36
  prompt = "professional portrait photo of a girl, photograph, highly detailed face, depth of field, moody light, golden hour, style by Dan Winters, Russell James, Steve McCurry, centered, extremely detailed, Nikon D850, award winning photography"
37
  negative_prompt = "3d render, cartoon, drawing, art, low light, blur, pixelated, low resolution, black and white"
38
+ num_inference_steps = 40
39
  height = 1024
40
  width = height
41
+ guidance_scale = 7.5
42
 
43
  pipe.unload_lora_weights()
44
  pipe.load_lora_weights(
 
47
  # weight_name="pytorch_lora_weights.safetensors",
48
  adapter_name="sdxl-dpo-lora",
49
  )
50
+ pipe.set_adapters(["sdxl-dpo-lora"], adapter_weights=[0.9])
51
  generator = torch.Generator().manual_seed(seed)
52
  with_dpo = pipe(
53
  prompt=prompt,
 
65
 
66
  adapter_weights
67
 
68
+ ![image/jpeg](https://cdn-uploads.huggingface.co/production/uploads/6064e095abd8d3692e3e2ed6/f69suGIl9Ysnmi52ahol8.jpeg)
69
+