DamarJati commited on
Commit
31c0b50
1 Parent(s): 669c8e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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)