DamarJati commited on
Commit
aea3399
1 Parent(s): f06c741

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -13,6 +13,8 @@ torch.backends.cuda.matmul.allow_tf32 = False
13
  base_model = "black-forest-labs/FLUX.1-dev"
14
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
15
 
 
 
16
  lora_repo = "Shakker-Labs/AWPortraitCN"
17
  trigger_word = "" # Leave trigger_word blank if not used.
18
  pipe.load_lora_weights(lora_repo, low_cpu_mem_usage=True)
 
13
  base_model = "black-forest-labs/FLUX.1-dev"
14
  pipe = DiffusionPipeline.from_pretrained(base_model, torch_dtype=torch.bfloat16)
15
 
16
+ pipe.scheduler = DEISMultistepScheduler.from_config(pipe.scheduler.config)
17
+
18
  lora_repo = "Shakker-Labs/AWPortraitCN"
19
  trigger_word = "" # Leave trigger_word blank if not used.
20
  pipe.load_lora_weights(lora_repo, low_cpu_mem_usage=True)