update
This commit is contained in:
@@ -63,13 +63,14 @@ def make_flux_fill_predictor(
|
||||
|
||||
if device == "cuda":
|
||||
try:
|
||||
pipe.enable_model_cpu_offload()
|
||||
pipe.enable_vae_tiling()
|
||||
except Exception:
|
||||
try:
|
||||
pipe.enable_vae_tiling()
|
||||
except Exception:
|
||||
pass
|
||||
pipe.to("cuda")
|
||||
pass
|
||||
try:
|
||||
pipe.enable_attention_slicing()
|
||||
except Exception:
|
||||
pass
|
||||
pipe.to("cuda")
|
||||
else:
|
||||
pipe.to(device)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user