moflo commited on
Commit
9c6d998
·
1 Parent(s): ec2de1d

Revert to old pertrained

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -560,10 +560,11 @@ TARGET_RES = 128
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("."),
@@ -589,8 +590,8 @@ class InferenceWrapper:
589
  def __init__(self, model):
590
  self.model = model
591
  self.style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
592
- self.style_gan.grow_model(32)
593
- self.style_gan.load_weights(os.path.join("pretrained/stylegan_32x32.ckpt"))
594
  self.seed = -1
595
 
596
  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
+ url = "https://github.com/moflo/nftGAN/releases/download/v0.1/stylegan_128x128.ckpt.zip"
565
 
566
  weights_path = keras.utils.get_file(
567
+ "stylegan_128x128.ckpt.zip",
568
  url,
569
  extract=True,
570
  cache_dir=os.path.abspath("."),
 
590
  def __init__(self, model):
591
  self.model = model
592
  self.style_gan = StyleGAN(start_res=START_RES, target_res=TARGET_RES)
593
+ self.style_gan.grow_model(128)
594
+ self.style_gan.load_weights(os.path.join("pretrained/stylegan_128x128.ckpt"))
595
  self.seed = -1
596
 
597
  def __call__(self, seed, feature):