Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,9 +8,10 @@ import spaces
|
|
| 8 |
device = "cuda"
|
| 9 |
|
| 10 |
torch.cuda.max_memory_allocated(device=device)
|
| 11 |
-
pipe =
|
| 12 |
pipe.enable_xformers_memory_efficient_attention()
|
| 13 |
pipe = pipe.to(device)
|
|
|
|
| 14 |
|
| 15 |
MAX_SEED = np.iinfo(np.int32).max
|
| 16 |
MAX_IMAGE_SIZE = 1024
|
|
|
|
| 8 |
device = "cuda"
|
| 9 |
|
| 10 |
torch.cuda.max_memory_allocated(device=device)
|
| 11 |
+
pipe = StableDiffusionXLPipeline.from_pretrained("sd-community/sdxl-flash")
|
| 12 |
pipe.enable_xformers_memory_efficient_attention()
|
| 13 |
pipe = pipe.to(device)
|
| 14 |
+
pipe.scheduler = DPMSolverSinglestepScheduler.from_config(pipe.scheduler.config, timestep_spacing="trailing")
|
| 15 |
|
| 16 |
MAX_SEED = np.iinfo(np.int32).max
|
| 17 |
MAX_IMAGE_SIZE = 1024
|