Spaces:
Configuration error
Configuration error
Update adapter_model.py
Browse files- adapter_model.py +6 -0
adapter_model.py
CHANGED
@@ -22,6 +22,8 @@ DEVICE = str(os.getenv(
|
|
22 |
"DEVICE")
|
23 |
)
|
24 |
|
|
|
|
|
25 |
noise_scheduler = DDIMScheduler(
|
26 |
num_train_timesteps=1000,
|
27 |
beta_start=0.00085,
|
@@ -33,6 +35,10 @@ noise_scheduler = DDIMScheduler(
|
|
33 |
)
|
34 |
vae = AutoencoderKL.from_pretrained(VAE_MODEL_PATH).to(dtype=torch.float16)
|
35 |
|
|
|
|
|
|
|
|
|
36 |
|
37 |
class MODEL:
|
38 |
def __init__(self, action):
|
|
|
22 |
"DEVICE")
|
23 |
)
|
24 |
|
25 |
+
|
26 |
+
|
27 |
noise_scheduler = DDIMScheduler(
|
28 |
num_train_timesteps=1000,
|
29 |
beta_start=0.00085,
|
|
|
35 |
)
|
36 |
vae = AutoencoderKL.from_pretrained(VAE_MODEL_PATH).to(dtype=torch.float16)
|
37 |
|
38 |
+
#TODO
|
39 |
+
#from diffusers import ConsistencyDecoderVAE
|
40 |
+
#vae = ConsistencyDecoderVAE.from_pretrained("openai/consistency-decoder", torch_dtype=torch.float16)
|
41 |
+
|
42 |
|
43 |
class MODEL:
|
44 |
def __init__(self, action):
|