linoyts HF staff commited on
Commit
4928b51
·
verified ·
1 Parent(s): 790c473

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
app.py CHANGED
@@ -11,15 +11,16 @@ from diffusers.utils import load_image
11
  MAX_SEED = np.iinfo(np.int32).max
12
  MAX_IMAGE_SIZE = 2048
13
 
14
- pipe_prior_redux = FluxPriorReduxPipeline.from_pretrained(
15
- "black-forest-labs/FLUX.1-Redux-dev",
16
- torch_dtype=torch.bfloat16
17
- ).to("cuda")
18
-
19
  pipe = FluxPipeline.from_pretrained(
20
  "black-forest-labs/FLUX.1-dev" ,
21
- text_encoder=None,
22
- text_encoder_2=None,
 
 
 
 
 
 
23
  torch_dtype=torch.bfloat16
24
  ).to("cuda")
25
 
 
11
  MAX_SEED = np.iinfo(np.int32).max
12
  MAX_IMAGE_SIZE = 2048
13
 
 
 
 
 
 
14
  pipe = FluxPipeline.from_pretrained(
15
  "black-forest-labs/FLUX.1-dev" ,
16
+ torch_dtype=torch.bfloat16
17
+ ).to("cuda")
18
+ pipe_prior_redux = FluxPriorReduxPipeline.from_pretrained(
19
+ "black-forest-labs/FLUX.1-Redux-dev",
20
+ text_encoder=pipe.text_encoder,
21
+ tokenizer=pipe.tokenizer,
22
+ text_encoder_2=pipe.text_encoder_2,
23
+ tokenizer_2=pipe.tokenizer_2,
24
  torch_dtype=torch.bfloat16
25
  ).to("cuda")
26