Update app.py
Browse files
app.py
CHANGED
|
@@ -38,11 +38,11 @@ with open('loras.json', 'r') as f:
|
|
| 38 |
# Initialize the base model
|
| 39 |
dtype = torch.bfloat16
|
| 40 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 41 |
-
base_model = "
|
| 42 |
|
| 43 |
taef1 = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to(device)
|
| 44 |
-
good_vae = AutoencoderKL.from_pretrained(
|
| 45 |
-
pipe = DiffusionPipeline.from_pretrained(
|
| 46 |
pipe_i2i = AutoPipelineForImage2Image.from_pretrained(
|
| 47 |
base_model,
|
| 48 |
vae=good_vae,
|
|
|
|
| 38 |
# Initialize the base model
|
| 39 |
dtype = torch.bfloat16
|
| 40 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 41 |
+
base_model = "black-forest-labs/FLUX.1-schnell"
|
| 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 |
pipe_i2i = AutoPipelineForImage2Image.from_pretrained(
|
| 47 |
base_model,
|
| 48 |
vae=good_vae,
|