Spaces:
Running
on
Zero
Running
on
Zero
de
Browse files
app.py
CHANGED
@@ -45,14 +45,14 @@ pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
|
|
45 |
offload_state_dict=True,
|
46 |
).to('cuda').to(torch.float16)
|
47 |
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
56 |
pipe.force_zeros_for_empty_prompt = False
|
57 |
|
58 |
def get_size(init_image):
|
|
|
45 |
offload_state_dict=True,
|
46 |
).to('cuda').to(torch.float16)
|
47 |
|
48 |
+
pipe.scheduler = EulerAncestralDiscreteScheduler(
|
49 |
+
beta_start=0.00085,
|
50 |
+
beta_end=0.012,
|
51 |
+
beta_schedule="scaled_linear",
|
52 |
+
num_train_timesteps=1000,
|
53 |
+
steps_offset=1
|
54 |
+
)
|
55 |
+
# pipe.scheduler = EulerAncestralDiscreteScheduler.from_config(pipe.scheduler.config)
|
56 |
pipe.force_zeros_for_empty_prompt = False
|
57 |
|
58 |
def get_size(init_image):
|