wjs0725 commited on
Commit
b4b0e38
·
verified ·
1 Parent(s): 58c38c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -63,7 +63,7 @@ class FluxEditor:
63
  self.t5 = load_t5(self.device, max_length=256 if self.name == "flux-schnell" else 512)
64
  self.clip = load_clip(self.device)
65
  self.model = load_flow_model(self.name, device='cuda')
66
- self.ae = load_ae(self.name, device='cuda' if self.offload else self.device)
67
  self.t5.eval()
68
  self.clip.eval()
69
  self.ae.eval()
 
63
  self.t5 = load_t5(self.device, max_length=256 if self.name == "flux-schnell" else 512)
64
  self.clip = load_clip(self.device)
65
  self.model = load_flow_model(self.name, device='cuda')
66
+ self.ae = load_ae(self.name, device='cuda')
67
  self.t5.eval()
68
  self.clip.eval()
69
  self.ae.eval()