RamAnanth1 commited on
Commit
52b1a93
·
1 Parent(s): 1357e2b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -20,8 +20,9 @@ login(token=os.environ.get('HF_KEY'))
20
  # )
21
 
22
  device = 'cpu'
 
23
  torch.cuda.max_memory_allocated(device='cpu')
24
- pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
25
  pipe = pipe.to(device)
26
  # pipe.enable_xformers_memory_efficient_attention()
27
  # torch.cuda.empty_cache()
 
20
  # )
21
 
22
  device = 'cpu'
23
+ seed = 10000
24
  torch.cuda.max_memory_allocated(device='cpu')
25
+ pipe = DiffusionPipeline.from_pretrained("stabilityai/stable-diffusion-xl-base-1.0", variant="fp16", use_safetensors=True)
26
  pipe = pipe.to(device)
27
  # pipe.enable_xformers_memory_efficient_attention()
28
  # torch.cuda.empty_cache()