moflo commited on
Commit
8afc0a0
·
1 Parent(s): e6dd44f

Typo on pretrained download 32x32

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -560,10 +560,10 @@ TARGET_RES = 128
560
 
561
  print("Loading...")
562
 
563
- url = "https://github.com/yarri-oss/stylegan_performance/releases/download/v0.1/stylegan_64x64.ckpt.zip"
564
 
565
  weights_path = keras.utils.get_file(
566
- "stylegan_64x64.ckpt",
567
  url,
568
  extract=True,
569
  cache_dir=os.path.abspath("."),
@@ -586,8 +586,8 @@ class InferenceWrapper:
586
  def __init__(self, model):
587
  self.model = model
588
  self.style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
589
- self.style_gan.grow_model(64)
590
- self.style_gan.load_weights(os.path.join("pretrained/stylegan_64x64.ckpt"))
591
  self.seed = -1
592
 
593
  def __call__(self, seed, feature):
 
560
 
561
  print("Loading...")
562
 
563
+ url = "https://github.com/yarri-oss/stylegan_performance/releases/download/v0.1/stylegan_32x32.ckpt.zip"
564
 
565
  weights_path = keras.utils.get_file(
566
+ "stylegan_32x32.ckpt.zip",
567
  url,
568
  extract=True,
569
  cache_dir=os.path.abspath("."),
 
586
  def __init__(self, model):
587
  self.model = model
588
  self.style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
589
+ self.style_gan.grow_model(32)
590
+ self.style_gan.load_weights(os.path.join("pretrained/stylegan_32x32.ckpt"))
591
  self.seed = -1
592
 
593
  def __call__(self, seed, feature):