AlexKoff88 commited on
Commit
6739aab
1 Parent(s): f45f781

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -10,12 +10,12 @@ import time
10
 
11
 
12
  def create_pipeline(name):
13
- if name == "valhalla/sd-pokemon-model":
14
  scheduler = DDPMScheduler(beta_start=0.00085, beta_end=0.012,
15
  beta_schedule="scaled_linear", num_train_timesteps=1000)
16
  pipe = StableDiffusionPipeline.from_pretrained(name, scheduler=scheduler)
17
  pipe.safety_checker = lambda images, clip_input: (images, False)
18
- elif name == "stable-diffusion-pokemons-valhalla-fp32":
19
  scheduler = DDPMScheduler(beta_start=0.00085, beta_end=0.012,
20
  beta_schedule="scaled_linear", num_train_timesteps=1000)
21
  pipe = OVStableDiffusionPipeline.from_pretrained(name, compile=False, scheduler=scheduler)
@@ -28,10 +28,10 @@ def create_pipeline(name):
28
  return pipe
29
 
30
  pipes = {
31
- "Torch fp32": "valhalla/sd-pokemon-model", #"svjack/Stable-Diffusion-Pokemon-en",
32
- "OpenVINO fp32": "OpenVINO/stable-diffusion-pokemons-valhalla-fp32", #"OpenVINO/stable-diffusion-pokemons-fp32",
33
- "OpenVINO 8-bit quantized": "OpenVINO/stable-diffusion-pokemons-valhalla-quantized-agressive", #"OpenVINO/stable-diffusion-pokemons-quantized-aggressive",
34
- "OpenVINO merged and quantized": "OpenVINO/stable-diffusion-pokemons-valhalla-tome-quantized-agressive", #"OpenVINO/stable-diffusion-pokemons-tome-quantized-aggressive"
35
  }
36
 
37
  # prefetch pipelines on start
 
10
 
11
 
12
  def create_pipeline(name):
13
+ if name == "svjack/Stable-Diffusion-Pokemon-en": #"valhalla/sd-pokemon-model":
14
  scheduler = DDPMScheduler(beta_start=0.00085, beta_end=0.012,
15
  beta_schedule="scaled_linear", num_train_timesteps=1000)
16
  pipe = StableDiffusionPipeline.from_pretrained(name, scheduler=scheduler)
17
  pipe.safety_checker = lambda images, clip_input: (images, False)
18
+ elif name == "OpenVINO/stable-diffusion-pokemons-fp32": #"stable-diffusion-pokemons-valhalla-fp32":
19
  scheduler = DDPMScheduler(beta_start=0.00085, beta_end=0.012,
20
  beta_schedule="scaled_linear", num_train_timesteps=1000)
21
  pipe = OVStableDiffusionPipeline.from_pretrained(name, compile=False, scheduler=scheduler)
 
28
  return pipe
29
 
30
  pipes = {
31
+ "Torch fp32": "svjack/Stable-Diffusion-Pokemon-en", #"valhalla/sd-pokemon-model"
32
+ "OpenVINO fp32": "OpenVINO/stable-diffusion-pokemons-fp32", #"OpenVINO/stable-diffusion-pokemons-valhalla-fp32"
33
+ "OpenVINO 8-bit quantized": "OpenVINO/stable-diffusion-pokemons-quantized-aggressive", #"OpenVINO/stable-diffusion-pokemons-valhalla-quantized-agressive"
34
+ "OpenVINO merged and quantized": "OpenVINO/stable-diffusion-pokemons-tome-quantized-aggressive" #"OpenVINO/stable-diffusion-pokemons-valhalla-tome-quantized-agressive"
35
  }
36
 
37
  # prefetch pipelines on start