Spaces:
Runtime error
Runtime error
Johannes
commited on
Commit
•
1a93fb5
1
Parent(s):
63816eb
remove custom scheduler
Browse files
app.py
CHANGED
@@ -3,7 +3,6 @@ import numpy as np
|
|
3 |
import torch
|
4 |
import jax
|
5 |
import jax.numpy as jnp
|
6 |
-
from diffusers import StableDiffusionInpaintPipeline
|
7 |
from flax.jax_utils import replicate
|
8 |
from flax.training.common_utils import shard
|
9 |
from PIL import Image
|
@@ -41,9 +40,6 @@ pipe, params = FlaxStableDiffusionControlNetPipeline.from_pretrained(
|
|
41 |
params["controlnet"] = controlnet_params
|
42 |
p_params = replicate(params)
|
43 |
|
44 |
-
pipe.scheduler = UniPCMultistepScheduler.from_config(pipe.scheduler.config)
|
45 |
-
pipe = pipe.to(device)
|
46 |
-
|
47 |
|
48 |
with gr.Blocks() as demo:
|
49 |
gr.Markdown("# WildSynth: Synthetic Wildlife Data Generation")
|
|
|
3 |
import torch
|
4 |
import jax
|
5 |
import jax.numpy as jnp
|
|
|
6 |
from flax.jax_utils import replicate
|
7 |
from flax.training.common_utils import shard
|
8 |
from PIL import Image
|
|
|
40 |
params["controlnet"] = controlnet_params
|
41 |
p_params = replicate(params)
|
42 |
|
|
|
|
|
|
|
43 |
|
44 |
with gr.Blocks() as demo:
|
45 |
gr.Markdown("# WildSynth: Synthetic Wildlife Data Generation")
|