piyushgrover commited on
Commit
29de412
·
verified ·
1 Parent(s): e80da04

Upload 2 files

Browse files
Files changed (2) hide show
  1. app.py +1 -0
  2. utils.py +2 -2
app.py CHANGED
@@ -43,6 +43,7 @@ def ui():
43
  with gr.Column():
44
  gr.Image(value=image, label=f"{label}",
45
  height=IMAGE_SIZE,
 
46
  show_download_button=False,
47
  show_share_button=False)
48
  #gr.Textbox(value=f"Label {label}", interactive=False)
 
43
  with gr.Column():
44
  gr.Image(value=image, label=f"{label}",
45
  height=IMAGE_SIZE,
46
+ width=IMAGE_SIZE,
47
  show_download_button=False,
48
  show_share_button=False)
49
  #gr.Textbox(value=f"Label {label}", interactive=False)
utils.py CHANGED
@@ -10,14 +10,14 @@ import torch.nn.functional as F
10
  import random
11
 
12
  style_guide = [
13
- ('Oil Style', 'oilstyle_learned_embeds.bin'),
14
  ('Matrix Style', 'matrix_learned_embeds.bin'),
15
  ('Stripe Style', 'stripe_learned_embeds.bin'),
16
  ('Dreamy Painting Style', 'dreamypainting_learned_embeds.bin'),
17
  ('Polygon HD Style', 'lowpolyhd_learned_embeds.bin')
18
  ]
19
 
20
- IMAGE_SIZE = 224
21
 
22
  # Prep Scheduler
23
  def set_timesteps(scheduler, num_inference_steps):
 
10
  import random
11
 
12
  style_guide = [
13
+ ('Oil Painting Style', 'oilstyle_learned_embeds.bin'),
14
  ('Matrix Style', 'matrix_learned_embeds.bin'),
15
  ('Stripe Style', 'stripe_learned_embeds.bin'),
16
  ('Dreamy Painting Style', 'dreamypainting_learned_embeds.bin'),
17
  ('Polygon HD Style', 'lowpolyhd_learned_embeds.bin')
18
  ]
19
 
20
+ IMAGE_SIZE = 150
21
 
22
  # Prep Scheduler
23
  def set_timesteps(scheduler, num_inference_steps):