dvir-bria commited on
Commit
0d1c424
1 Parent(s): e9422b8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,19 +8,19 @@ import gradio as gr
8
  from torchvision import transforms
9
 
10
  controlnet = ControlNetModel.from_pretrained(
11
- "briaai/ControlNet-Canny",
12
  torch_dtype=torch.float16
13
  ).to('cuda')
14
 
15
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
16
- "briaai/BRIA-2.0",
17
  controlnet=controlnet,
18
  torch_dtype=torch.float16,
19
  device_map='auto',
20
  low_cpu_mem_usage=True,
21
  offload_state_dict=True,
22
  ).to('cuda')
23
- pipe.enable_freeu(b1=1.1, b2=1.1, s1=0.5, s2=0.7)
24
  pipe.enable_xformers_memory_efficient_attention()
25
  pipe.force_zeros_for_empty_prompt = False
26
 
 
8
  from torchvision import transforms
9
 
10
  controlnet = ControlNetModel.from_pretrained(
11
+ "briaai/BRIA-2.2-ControlNet-Canny",
12
  torch_dtype=torch.float16
13
  ).to('cuda')
14
 
15
  pipe = StableDiffusionXLControlNetPipeline.from_pretrained(
16
+ "briaai/BRIA-2.2",
17
  controlnet=controlnet,
18
  torch_dtype=torch.float16,
19
  device_map='auto',
20
  low_cpu_mem_usage=True,
21
  offload_state_dict=True,
22
  ).to('cuda')
23
+ # pipe.enable_freeu(b1=1.1, b2=1.1, s1=0.5, s2=0.7)
24
  pipe.enable_xformers_memory_efficient_attention()
25
  pipe.force_zeros_for_empty_prompt = False
26