Spaces:
Runtime error
Runtime error
Commit
•
fd45217
1
Parent(s):
c0391de
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,6 @@ models_list = api.list_models(author="sd-concepts-library", sort="likes", direct
|
|
15 |
models = []
|
16 |
|
17 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=True, revision="fp16", torch_dtype=torch.float16).to("cuda")
|
18 |
-
torch.backends.cudnn.benchmark = True
|
19 |
|
20 |
def load_learned_embed_in_clip(learned_embeds_path, text_encoder, tokenizer, token=None):
|
21 |
loaded_learned_embeds = torch.load(learned_embeds_path, map_location="cpu")
|
|
|
15 |
models = []
|
16 |
|
17 |
pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4", use_auth_token=True, revision="fp16", torch_dtype=torch.float16).to("cuda")
|
|
|
18 |
|
19 |
def load_learned_embed_in_clip(learned_embeds_path, text_encoder, tokenizer, token=None):
|
20 |
loaded_learned_embeds = torch.load(learned_embeds_path, map_location="cpu")
|