VIVEK JAYARAM
commited on
Commit
·
83bba75
1
Parent(s):
83e40e0
bug fix
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def process_image(image_choice, noise_sigma, operator_key, T, K):
|
|
44 |
if model is None:
|
45 |
model_type = "diffusers"
|
46 |
model_name = "google/ddpm-celebahq-256" if "Celeb" in image_choice else "google/ddpm-curch-256"
|
47 |
-
model = DiffusionPipeline.from_pretrained(
|
48 |
ddim_scheduler = DDIMScheduler(
|
49 |
num_train_timesteps=1000,
|
50 |
beta_start=0.0001,
|
|
|
44 |
if model is None:
|
45 |
model_type = "diffusers"
|
46 |
model_name = "google/ddpm-celebahq-256" if "Celeb" in image_choice else "google/ddpm-curch-256"
|
47 |
+
model = DiffusionPipeline.from_pretrained(model_name).to(device).unet
|
48 |
ddim_scheduler = DDIMScheduler(
|
49 |
num_train_timesteps=1000,
|
50 |
beta_start=0.0001,
|