tight-inversion commited on
Commit
a11990f
·
1 Parent(s): 092634c
Files changed (1) hide show
  1. app.py +10 -10
app.py CHANGED
@@ -20,18 +20,18 @@ from pulid.pipeline_flux import PuLIDPipeline
20
  from pulid.utils import resize_numpy_image_long, seed_everything
21
 
22
 
23
- def get_models(name: str, device: torch.device, offload: bool, fp8: bool):
24
- t5 = load_t5(device, max_length=128)
25
- clip = load_clip(device)
26
- model = load_flow_model(name, device="cpu" if offload else device)
27
- model.eval()
28
- ae = load_ae(name, device=device)
29
- return model, ae, t5, clip
 
 
 
30
 
31
  def get_models(name: str, device: torch.device, offload: bool, fp8: bool):
32
- class Tmp:
33
- def __init__(self):
34
- self.max_length = 128
35
  t5 = Tmp()
36
  clip = None
37
  model = None
 
20
  from pulid.utils import resize_numpy_image_long, seed_everything
21
 
22
 
23
+ # def get_models(name: str, device: torch.device, offload: bool, fp8: bool):
24
+ # t5 = load_t5(device, max_length=128)
25
+ # clip = load_clip(device)
26
+ # model = load_flow_model(name, device="cpu" if offload else device)
27
+ # model.eval()
28
+ # ae = load_ae(name, device=device)
29
+ # return model, ae, t5, clip
30
+ class Tmp:
31
+ def __init__(self):
32
+ self.max_length = 128
33
 
34
  def get_models(name: str, device: torch.device, offload: bool, fp8: bool):
 
 
 
35
  t5 = Tmp()
36
  clip = None
37
  model = None