Update app_bp.py
Browse files
app_bp.py
CHANGED
@@ -103,7 +103,8 @@ good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfold
|
|
103 |
flux_pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, vae=taef1, token=access_token).to(device_0)
|
104 |
flux_lora_ckpt_path = hf_hub_download(repo_id="LTT/xxx-ckpt", filename="rgb_normal_large.safetensors", repo_type="model")
|
105 |
flux_pipe.load_lora_weights(flux_lora_ckpt_path)
|
106 |
-
flux_pipe.to(device=device_0, dtype=torch.bfloat16)
|
|
|
107 |
flux_pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(flux_pipe)
|
108 |
|
109 |
|
|
|
103 |
flux_pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=torch.bfloat16, vae=taef1, token=access_token).to(device_0)
|
104 |
flux_lora_ckpt_path = hf_hub_download(repo_id="LTT/xxx-ckpt", filename="rgb_normal_large.safetensors", repo_type="model")
|
105 |
flux_pipe.load_lora_weights(flux_lora_ckpt_path)
|
106 |
+
# flux_pipe.to(device=device_0, dtype=torch.bfloat16)
|
107 |
+
torch.cuda.empty_cache()
|
108 |
flux_pipe.flux_pipe_call_that_returns_an_iterable_of_images = flux_pipe_call_that_returns_an_iterable_of_images.__get__(flux_pipe)
|
109 |
|
110 |
|