Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ good_vae = AutoencoderKL.from_pretrained("black-forest-labs/FLUX.1-dev", subfold
|
|
| 16 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1).to(device)
|
| 17 |
ds = load_dataset("weathon/anti_aesthetics_dataset_test", split="train[:100]")
|
| 18 |
|
| 19 |
-
pipe.load_lora_weights("weathon/anti_aesthetics_lora_2", weight_name="checkpoint-
|
| 20 |
pipe.to("cuda")
|
| 21 |
|
| 22 |
torch.cuda.empty_cache()
|
|
|
|
| 16 |
pipe = DiffusionPipeline.from_pretrained("black-forest-labs/FLUX.1-dev", torch_dtype=dtype, vae=taef1).to(device)
|
| 17 |
ds = load_dataset("weathon/anti_aesthetics_dataset_test", split="train[:100]")
|
| 18 |
|
| 19 |
+
pipe.load_lora_weights("weathon/anti_aesthetics_lora_2", weight_name="checkpoint-1500/pytorch_lora_weights.safetensors")
|
| 20 |
pipe.to("cuda")
|
| 21 |
|
| 22 |
torch.cuda.empty_cache()
|