Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,10 @@ from PIL import Image
|
|
5 |
from diffusers import DiffusionPipeline
|
6 |
import random
|
7 |
|
|
|
|
|
|
|
|
|
8 |
# Initialize the base model and specific LoRA
|
9 |
base_model = "black-forest-labs/FLUX.1-dev"
|
10 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|
|
|
5 |
from diffusers import DiffusionPipeline
|
6 |
import random
|
7 |
|
8 |
+
torch.backends.cudnn.deterministic = True
|
9 |
+
torch.backends.cudnn.benchmark = False
|
10 |
+
torch.backends.cuda.matmul.allow_tf32 = True
|
11 |
+
|
12 |
# Initialize the base model and specific LoRA
|
13 |
base_model = "black-forest-labs/FLUX.1-dev"
|
14 |
pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
|