moflo commited on
Commit
9b71fdf
·
1 Parent(s): 5e3938f

Testing 64x64

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -560,11 +560,10 @@ 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
- 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,8 +589,8 @@ class InferenceWrapper:
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):
 
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.zip",
567
  url,
568
  extract=True,
569
  cache_dir=os.path.abspath("."),
 
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(64)
593
+ self.style_gan.load_weights(os.path.join("pretrained/stylegan_64x64.ckpt"))
594
  self.seed = -1
595
 
596
  def __call__(self, seed, feature):