RoniFinTech commited on
Commit
461ace0
1 Parent(s): 0cf7b1f
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -9,6 +9,7 @@ from fastapi.responses import StreamingResponse
9
  base = DiffusionPipeline.from_pretrained(
10
  "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
11
  )
 
12
  base.to("cuda")
13
  # base.enable_model_cpu_offload()
14
  base.enable_attention_slicing()
 
9
  base = DiffusionPipeline.from_pretrained(
10
  "stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True
11
  )
12
+
13
  base.to("cuda")
14
  # base.enable_model_cpu_offload()
15
  base.enable_attention_slicing()