Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,7 +9,8 @@ from diffusers.models.attention_processor import AttnProcessor2_0
|
|
| 9 |
from custom_pipeline import FluxWithCFGPipeline
|
| 10 |
|
| 11 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 12 |
-
|
|
|
|
| 13 |
# Constants
|
| 14 |
MAX_SEED = np.iinfo(np.int32).max
|
| 15 |
MAX_IMAGE_SIZE = 2048
|
|
@@ -163,4 +164,4 @@ with gr.Blocks() as demo:
|
|
| 163 |
)
|
| 164 |
|
| 165 |
# Launch the app
|
| 166 |
-
demo.launch()
|
|
|
|
| 9 |
from custom_pipeline import FluxWithCFGPipeline
|
| 10 |
|
| 11 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 12 |
+
torch.backends.cudnn.allow_tf32 = True
|
| 13 |
+
torch.set_float32_matmul_precision('high')
|
| 14 |
# Constants
|
| 15 |
MAX_SEED = np.iinfo(np.int32).max
|
| 16 |
MAX_IMAGE_SIZE = 2048
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
# Launch the app
|
| 167 |
+
demo.launch()
|