Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,11 +38,11 @@ taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.b
|
|
38 |
good_vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=torch.bfloat16).to(device)
|
39 |
|
40 |
dtype = torch.bfloat16
|
41 |
-
|
42 |
-
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype, use_safetensors=True).to("cuda")
|
43 |
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
44 |
torch.cuda.empty_cache()
|
45 |
|
|
|
46 |
model_id = ("zer0int/LongCLIP-GmP-ViT-L-14")
|
47 |
config = CLIPConfig.from_pretrained(model_id)
|
48 |
config.text_config.max_position_embeddings = 248
|
|
|
38 |
good_vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=torch.bfloat16).to(device)
|
39 |
|
40 |
dtype = torch.bfloat16
|
41 |
+
pipe = DiffusionPipeline.from_pretrained("ostris/Flex.1-alpha", torch_dtype=dtype).to("cuda")
|
|
|
42 |
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
43 |
torch.cuda.empty_cache()
|
44 |
|
45 |
+
pipe.transformer = FluxTransformer2DModel.from_pretrained("AlekseyCalvin/FlexAlpha_Soonr", use_safetensors=True)
|
46 |
model_id = ("zer0int/LongCLIP-GmP-ViT-L-14")
|
47 |
config = CLIPConfig.from_pretrained(model_id)
|
48 |
config.text_config.max_position_embeddings = 248
|