Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -58,11 +58,12 @@ var_2="nota-ai/bk-sdm-small"
|
|
58 |
|
59 |
|
60 |
pipe = StableDiffusionPipeline.from_pretrained(
|
61 |
-
|
62 |
#pipe.vae = AutoencoderTiny.from_pretrained(
|
63 |
# "sayakpaul/taesd-diffusers", torch_dtype=torch_dtype, use_safetensors=True)
|
64 |
pipe = pipe.to(device)
|
65 |
pipe.enable_vae_tiling()
|
|
|
66 |
|
67 |
@spaces.GPU(duration=25) #[uncomment to use ZeroGPU]
|
68 |
def infer(
|
|
|
58 |
|
59 |
|
60 |
pipe = StableDiffusionPipeline.from_pretrained(
|
61 |
+
model_repo_id, torch_dtype=torch_dtype, use_safetensors=True)
|
62 |
#pipe.vae = AutoencoderTiny.from_pretrained(
|
63 |
# "sayakpaul/taesd-diffusers", torch_dtype=torch_dtype, use_safetensors=True)
|
64 |
pipe = pipe.to(device)
|
65 |
pipe.enable_vae_tiling()
|
66 |
+
pipe.enable_sequential_cpu_offload()
|
67 |
|
68 |
@spaces.GPU(duration=25) #[uncomment to use ZeroGPU]
|
69 |
def infer(
|