Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,8 @@ 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 |
-
base_model = "AlekseyCalvin/
|
42 |
-
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype).to("cuda")
|
43 |
#pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=torch.float16).to("cuda")
|
44 |
torch.cuda.empty_cache()
|
45 |
|
@@ -55,6 +55,8 @@ pipe.text_encoder.dtype = torch.bfloat16
|
|
55 |
|
56 |
pipe.vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=dtype).to(device)
|
57 |
|
|
|
|
|
58 |
# Load LoRAs from JSON file
|
59 |
with open('loras.json', 'r') as f:
|
60 |
loras = json.load(f)
|
|
|
38 |
good_vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=torch.bfloat16).to(device)
|
39 |
|
40 |
dtype = torch.bfloat16
|
41 |
+
base_model = ""AlekseyCalvin/FlexAlpha_Soonr"
|
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 |
|
|
|
55 |
|
56 |
pipe.vae = AutoencoderKL.from_pretrained("ostris/Flex.1-alpha", subfolder="vae", torch_dtype=dtype).to(device)
|
57 |
|
58 |
+
pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(pipe)
|
59 |
+
|
60 |
# Load LoRAs from JSON file
|
61 |
with open('loras.json', 'r') as f:
|
62 |
loras = json.load(f)
|