RohitGandikota commited on
Commit
23cbc09
β€’
1 Parent(s): 99a36aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -6
app.py CHANGED
@@ -20,16 +20,24 @@ model_map = {
20
 
21
 
22
 
23
- 'Long Hair' : 'models/longhair.pt',
24
  'Curly Hair' : 'models/curlyhair.pt',
25
 
26
  'Pixar Style' : 'models/pixar_style.pt',
27
  'Sculpture Style': 'models/sculpture_style.pt',
 
28
 
29
  'Repair Images': 'models/repair_slider.pt',
30
  'Fix Hands': 'models/fix_hands.pt',
 
 
 
 
 
 
 
31
 
32
- 'Wavy Eyebrows': 'models/eyebrows.pt',
33
  'Small Eyes (use scales -3, -1, 1, 3)': 'models/eyesize.pt',
34
  }
35
 
@@ -48,12 +56,12 @@ class Demo:
48
  self.training = False
49
  self.generating = False
50
  self.device = 'cuda'
51
- self.weight_dtype = torch.float16
52
  self.pipe = StableDiffusionXLPipeline.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=self.weight_dtype).to(self.device)
53
  self.pipe.enable_xformers_memory_efficient_attention()
54
  with gr.Blocks() as demo:
55
  self.layout()
56
- demo.queue(max_size=5).launch(share=True, max_threads=3)
57
 
58
 
59
  def layout(self):
@@ -98,8 +106,8 @@ class Demo:
98
  )
99
 
100
  self.slider_scale_infr = gr.Slider(
101
- -6,
102
- 6,
103
  label="Slider Scale",
104
  value=3,
105
  info="Larger slider scale result in stronger edit"
 
20
 
21
 
22
 
23
+ 'Long Hair' : 'models/long_hair.pt',
24
  'Curly Hair' : 'models/curlyhair.pt',
25
 
26
  'Pixar Style' : 'models/pixar_style.pt',
27
  'Sculpture Style': 'models/sculpture_style.pt',
28
+ 'Clay Style': 'models/clay_style.pt',
29
 
30
  'Repair Images': 'models/repair_slider.pt',
31
  'Fix Hands': 'models/fix_hands.pt',
32
+
33
+ 'Cluttered Room': 'models/cluttered_room.pt',
34
+
35
+ 'Dark Weather': 'models/dark_weather.pt',
36
+ 'Festive': 'models/festive.pt',
37
+ 'Tropical Weather': 'models/tropical_weather.pt',
38
+ 'Winter Weather': 'models/winter_weather.pt',
39
 
40
+ 'Wavy Eyebrows': 'models/eyebrow.pt',
41
  'Small Eyes (use scales -3, -1, 1, 3)': 'models/eyesize.pt',
42
  }
43
 
 
56
  self.training = False
57
  self.generating = False
58
  self.device = 'cuda'
59
+ self.weight_dtype = torch.bfloat16
60
  self.pipe = StableDiffusionXLPipeline.from_pretrained('stabilityai/stable-diffusion-xl-base-1.0', torch_dtype=self.weight_dtype).to(self.device)
61
  self.pipe.enable_xformers_memory_efficient_attention()
62
  with gr.Blocks() as demo:
63
  self.layout()
64
+ demo.queue(max_size=5).launch(share=True, max_threads=2)
65
 
66
 
67
  def layout(self):
 
106
  )
107
 
108
  self.slider_scale_infr = gr.Slider(
109
+ -4,
110
+ 4,
111
  label="Slider Scale",
112
  value=3,
113
  info="Larger slider scale result in stronger edit"