Spaces:
Sleeping
Sleeping
File size: 296 Bytes
1f39cf9 |
1 2 3 4 5 6 7 8 9 10 11 12 |
from models import load_sd, sam
use_fp16 = False
use_dpm = True
sd_key = "gligen/diffusers-generation-text-box"
print(f"Using SD: {sd_key}")
model_dict = load_sd(key=sd_key, use_fp16=use_fp16, use_dpm_multistep_scheduler=use_dpm, load_inverse_scheduler=False)
sam_model_dict = sam.load_sam()
|