nftblackmagic commited on
Commit
f6916ac
1 Parent(s): 7b183da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,12 +17,12 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
17
  print('Loading diffusion model ...')
18
  transformer = FluxTransformer2DModel.from_pretrained(
19
  "xiaozaa/catvton-flux-alpha",
20
- torch_dtype=device
21
  )
22
  pipe = FluxFillPipeline.from_pretrained(
23
  "black-forest-labs/FLUX.1-dev",
24
  transformer=transformer,
25
- torch_dtype=device
26
  ).to(device)
27
  print('Loading Finished!')
28
 
 
17
  print('Loading diffusion model ...')
18
  transformer = FluxTransformer2DModel.from_pretrained(
19
  "xiaozaa/catvton-flux-alpha",
20
+ torch_dtype=dtype
21
  )
22
  pipe = FluxFillPipeline.from_pretrained(
23
  "black-forest-labs/FLUX.1-dev",
24
  transformer=transformer,
25
+ torch_dtype=dtype
26
  ).to(device)
27
  print('Loading Finished!')
28