Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,13 +38,17 @@ with open('loras.json', 'r') as f:
|
|
| 38 |
|
| 39 |
dtype = torch.bfloat16
|
| 40 |
|
| 41 |
-
model = FluxTransformer2DModel.from_pretrained("ostris/OpenFLUX.1", subfolder="transformer", torch_dtype=dtype).to("cuda")
|
| 42 |
-
model.num_single_layers="0"
|
| 43 |
-
model.chunk_size="0"
|
| 44 |
-
model.pooled_projections="(_,
|
| 45 |
-
model.pooled_projections_dim="
|
| 46 |
pipe = FluxWithCFGPipeline.from_pretrained("ostris/OpenFLUX.1", torch_dtype=dtype).to("cuda")
|
| 47 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to("cuda")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
pipe.to("cuda")
|
| 50 |
#clipmodel = 'norm'
|
|
|
|
| 38 |
|
| 39 |
dtype = torch.bfloat16
|
| 40 |
|
| 41 |
+
#model = FluxTransformer2DModel.from_pretrained("ostris/OpenFLUX.1", subfolder="transformer", torch_dtype=dtype).to("cuda")
|
| 42 |
+
#model.num_single_layers="0"
|
| 43 |
+
#model.chunk_size="0"
|
| 44 |
+
#model.pooled_projections="(_, 1)[0]"
|
| 45 |
+
#model.pooled_projections_dim="0"
|
| 46 |
pipe = FluxWithCFGPipeline.from_pretrained("ostris/OpenFLUX.1", torch_dtype=dtype).to("cuda")
|
| 47 |
pipe.vae = AutoencoderTiny.from_pretrained("madebyollin/taef1", torch_dtype=dtype).to("cuda")
|
| 48 |
+
#pipe.num_single_layers="0"
|
| 49 |
+
pipe.transformer_chunk_size="0"
|
| 50 |
+
#model.pooled_projections="(_, 1)[0]"
|
| 51 |
+
pipe.transformer_pooled_projections_dim="0"
|
| 52 |
|
| 53 |
pipe.to("cuda")
|
| 54 |
#clipmodel = 'norm'
|