Update app.py
Browse files
app.py
CHANGED
@@ -42,13 +42,7 @@ base_model = "black-forest-labs/FLUX.1-dev"
|
|
42 |
|
43 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
44 |
good_vae = AutoencoderKL.from_pretrained(base_model, subfolder="vae", torch_dtype=dtype).to(device)
|
45 |
-
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype, vae=taef1
|
46 |
-
transformer=pipe.transformer,
|
47 |
-
text_encoder=pipe.text_encoder,
|
48 |
-
tokenizer=pipe.tokenizer,
|
49 |
-
text_encoder_2=pipe.text_encoder_2,
|
50 |
-
tokenizer_2=pipe.tokenizer_2,
|
51 |
-
).to(device)
|
52 |
|
53 |
MAX_SEED = 2**32 - 1
|
54 |
|
|
|
42 |
|
43 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
44 |
good_vae = AutoencoderKL.from_pretrained(base_model, subfolder="vae", torch_dtype=dtype).to(device)
|
45 |
+
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=dtype, vae=taef1).to(device)
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
MAX_SEED = 2**32 - 1
|
48 |
|