lifeng commited on
Commit
333b9ce
·
1 Parent(s): 00bb3aa

修改参数

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -24,8 +24,9 @@ base_path = "black-forest-labs/FLUX.1-dev"
24
  lora_base_path = "./models"
25
 
26
 
27
- pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
28
- transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat16)
 
29
  pipe.transformer = transformer
30
  pipe.to("cuda")
31
 
 
24
  lora_base_path = "./models"
25
 
26
 
27
+ # pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat16)
28
+ pipe = FluxPipeline.from_pretrained(base_path, torch_dtype=torch.bfloat8)
29
+ transformer = FluxTransformer2DModel.from_pretrained(base_path, subfolder="transformer", torch_dtype=torch.bfloat8)
30
  pipe.transformer = transformer
31
  pipe.to("cuda")
32