Commit
·
1a844e7
1
Parent(s):
04896b2
add docs
Browse files- run_xl_ediffi.py +4 -4
run_xl_ediffi.py
CHANGED
@@ -27,15 +27,15 @@ pipe_low_noise.to("cuda")
|
|
27 |
prompt = "A majestic lion jumping from a big stone at night"
|
28 |
|
29 |
num_inference_steps = 40
|
30 |
-
high_noise_frac =
|
31 |
|
32 |
seed = 0
|
33 |
seed_everything(seed)
|
34 |
|
35 |
-
image = pipe_high_noise(prompt=prompt, num_inference_steps=num_inference_steps, denoising_end=high_noise_frac
|
36 |
-
image = pipe_low_noise(prompt=prompt, num_inference_steps=num_inference_steps, denoising_start=high_noise_frac, image=image).images[0]
|
37 |
|
38 |
-
file_name = f"
|
39 |
path = os.path.join(Path.home(), "images", "ediffi_sdxl", f"{file_name}.png")
|
40 |
image.save(path)
|
41 |
|
|
|
27 |
prompt = "A majestic lion jumping from a big stone at night"
|
28 |
|
29 |
num_inference_steps = 40
|
30 |
+
high_noise_frac = None
|
31 |
|
32 |
seed = 0
|
33 |
seed_everything(seed)
|
34 |
|
35 |
+
image = pipe_high_noise(prompt=prompt, num_inference_steps=num_inference_steps, denoising_end=high_noise_frac).images[0]
|
36 |
+
# image = pipe_low_noise(prompt=prompt, num_inference_steps=num_inference_steps, denoising_start=high_noise_frac, image=image).images[0]
|
37 |
|
38 |
+
file_name = f"aaa_1"
|
39 |
path = os.path.join(Path.home(), "images", "ediffi_sdxl", f"{file_name}.png")
|
40 |
image.save(path)
|
41 |
|