ironjr commited on
Commit
408ba8c
1 Parent(s): 6f1773a

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +11 -66
app.py CHANGED
@@ -28,15 +28,15 @@ d = example_root
28
  if len(glob.glob(os.path.join(d, '*.ply'))) < 8:
29
  snapshot_download(repo_id="ironjr/LucidDreamerDemo", repo_type="model", local_dir=d)
30
 
31
- d = os.path.join(ckpt_root, 'Blazing Drive V11m')
32
- if not os.path.exists(d):
33
- snapshot_download(repo_id="ironjr/BlazingDriveV11m", repo_type="model", local_dir=d)
34
- d = os.path.join(ckpt_root, 'RealCartoon-Pixar V5')
35
- if not os.path.exists(d):
36
- snapshot_download(repo_id="ironjr/RealCartoon-PixarV5", repo_type="model", local_dir=d)
37
- d = os.path.join(ckpt_root, 'Realistic Vision V5.1')
38
- if not os.path.exists(d):
39
- snapshot_download(repo_id="ironjr/RealisticVisionV5-1", repo_type="model", local_dir=d)
40
  d = os.path.join(ckpt_root, 'SD1-5')
41
  if not os.path.exists(d):
42
  snapshot_download(repo_id="runwayml/stable-diffusion-inpainting", repo_type="model", local_dir=d)
@@ -116,7 +116,7 @@ with gr.Blocks(css=css) as demo:
116
  with gr.Column():
117
  model_name = gr.Radio(
118
  label='SD checkpoint',
119
- choices=['SD1.5 (default)', 'Blazing Drive V11m', 'Realistic Vision V5.1', 'RealCartoon-Pixar V5',],
120
  value='SD1.5 (default)'
121
  )
122
 
@@ -186,7 +186,7 @@ with gr.Blocks(css=css) as demo:
186
 
187
  example_name = gr.Radio(
188
  label='Quick load',
189
- choices=['girl', 'ruin', 'doge', 'christmas', 'elf', 'animelake', 'fantasy', 'kitchen', 'DON\'T'],
190
  value='DON\'T',
191
  )
192
 
@@ -198,61 +198,6 @@ with gr.Blocks(css=css) as demo:
198
 
199
  gr.Examples(
200
  examples=[
201
- [
202
- 'girl',
203
- 'examples/girl.jpg',
204
- 'dark messy room, noir style, indoors, bottle, shoe soles, jacket, cup, window, blurry, black footwear, depth of field, box, couch, table, gun, chair, foreshortening',
205
- 'photo frame, frame, boarder, simple color, inconsistent',
206
- 'lookaround',
207
- 10,
208
- 25,
209
- 'back_and_forth',
210
- 'Blazing Drive V11m',
211
- ],
212
- [
213
- 'ruin',
214
- 'examples/ruin.png',
215
- 'Postapocalyptic city in desert',
216
- 'photo frame, frame, boarder, simple color, inconsistent, humans, people',
217
- 'lookaround',
218
- 4,
219
- 25,
220
- 'back_and_forth',
221
- 'Blazing Drive V11m',
222
- ],
223
- [
224
- 'doge',
225
- 'examples/doge.png',
226
- 'a cozy livingroom',
227
- 'photo frame, frame, boarder, simple color, inconsistent, humans, people',
228
- 'lookaround',
229
- 10,
230
- 25,
231
- 'back_and_forth',
232
- 'Realistic Vision V5.1',
233
- ],
234
- [
235
- 'christmas',
236
- 'examples/christmas.png',
237
- 'Cozy livingroom in christmas',
238
- 'photo frame, frame, boarder, simple color, inconsistent, humans, people',
239
- 'lookaround',
240
- 3,
241
- 25,
242
- 'back_and_forth',
243
- 'Realistic Vision V5.1',
244
- ],
245
- [
246
- 'elf',
247
- 'examples/elf.png',
248
- 'serene deep forest',
249
- 'photo frame, frame, boarder, simple color, inconsistent, humans, people',
250
- 'lookaround',
251
- 10,
252
- 25,
253
- 'back_and_forth',
254
- 'RealCartoon-Pixar V5',
255
- ],
256
  [
257
  'animelake',
258
  'examples/Image015_animelakehouse.jpg',
 
28
  if len(glob.glob(os.path.join(d, '*.ply'))) < 8:
29
  snapshot_download(repo_id="ironjr/LucidDreamerDemo", repo_type="model", local_dir=d)
30
 
31
+ # d = os.path.join(ckpt_root, 'Blazing Drive V11m')
32
+ # if not os.path.exists(d):
33
+ # snapshot_download(repo_id="ironjr/BlazingDriveV11m", repo_type="model", local_dir=d)
34
+ # d = os.path.join(ckpt_root, 'RealCartoon-Pixar V5')
35
+ # if not os.path.exists(d):
36
+ # snapshot_download(repo_id="ironjr/RealCartoon-PixarV5", repo_type="model", local_dir=d)
37
+ # d = os.path.join(ckpt_root, 'Realistic Vision V5.1')
38
+ # if not os.path.exists(d):
39
+ # snapshot_download(repo_id="ironjr/RealisticVisionV5-1", repo_type="model", local_dir=d)
40
  d = os.path.join(ckpt_root, 'SD1-5')
41
  if not os.path.exists(d):
42
  snapshot_download(repo_id="runwayml/stable-diffusion-inpainting", repo_type="model", local_dir=d)
 
116
  with gr.Column():
117
  model_name = gr.Radio(
118
  label='SD checkpoint',
119
+ choices=['SD1.5 (default)'],
120
  value='SD1.5 (default)'
121
  )
122
 
 
186
 
187
  example_name = gr.Radio(
188
  label='Quick load',
189
+ choices=['animelake', 'fantasy', 'kitchen', 'DON\'T'],
190
  value='DON\'T',
191
  )
192
 
 
198
 
199
  gr.Examples(
200
  examples=[
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  [
202
  'animelake',
203
  'examples/Image015_animelakehouse.jpg',