Manjushri commited on
Commit
15b70c9
·
verified ·
1 Parent(s): 13794b3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -9,12 +9,10 @@ from diffusers import StableDiffusion3Pipeline
9
  device = 'cuda' #if torch.cuda.is_available() else 'cpu'
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
- SD3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16)
13
  SD3.enable_xformers_memory_efficient_attention()
14
- SD3 = SD3.to(device)
15
-
16
 
17
- def genie (Prompt, negative_prompt, height, width, scale, steps, d_steps, seed):
18
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
19
  torch.cuda.empty_cache()
20
  image=SD3(
 
9
  device = 'cuda' #if torch.cuda.is_available() else 'cpu'
10
  torch.cuda.max_memory_allocated(device=device)
11
  torch.cuda.empty_cache()
12
+ SD3 = StableDiffusion3Pipeline.from_pretrained("stabilityai/stable-diffusion-3-medium-diffusers", torch_dtype=torch.float16).to(device)
13
  SD3.enable_xformers_memory_efficient_attention()
 
 
14
 
15
+ def genie (Prompt, negative_prompt, height, width, scale, steps, seed):
16
  generator = np.random.seed(0) if seed == 0 else torch.manual_seed(seed)
17
  torch.cuda.empty_cache()
18
  image=SD3(