Team Ai
Apppublic

michaelcreatesstuff/llm-grounded-diffusion

sourceHugging Faceupdated 3y agoView on Hugging Face
2likes
shared.py16 linesDownload Raw Back to root
1from models import load_sd, sam2 3 4DEFAULT_SO_NEGATIVE_PROMPT = "artifacts, blurry, smooth texture, bad quality, distortions, unrealistic, distorted image, bad proportions, duplicate, two, many, group, occlusion, occluded, side, border, collate"5DEFAULT_OVERALL_NEGATIVE_PROMPT = "artifacts, blurry, smooth texture, bad quality, distortions, unrealistic, distorted image, bad proportions, duplicate"6 7 8use_fp16 = False9 10sd_key = "gligen/diffusers-generation-text-box"11 12print(f"Using SD: {sd_key}")13model_dict = load_sd(key=sd_key, use_fp16=use_fp16, load_inverse_scheduler=False)14 15sam_model_dict = sam.load_sam()16