multimodalart HF staff commited on
Commit
250e8f9
·
verified ·
1 Parent(s): 3136eb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -7
app.py CHANGED
@@ -1011,21 +1011,18 @@ imagenet_classes = {
1011
  999: "toilet tissue, toilet paper, bathroom tissue",
1012
  }
1013
 
1014
- path_ffhq = hf_hub_download(repo_id="brownvc/BaselineGAN-FFHQ-256x256", filename="network-snapshot-final.pkl", local_dir="ffhq-256x256.pkl")
1015
- path_imgnet = hf_hub_download(repo_id="brownvc/BaselineGAN-ImgNet-64x64-v0", filename="network-snapshot-final.pkl", local_dir="ImgNet-64x64-v0.pkl")
1016
-
1017
- print(path_ffhq)
1018
- print(path_imgnet)
1019
 
1020
  # Configuration
1021
  networks = {
1022
  "FFHQ (Faces) 256px": {
1023
- "path": "ffhq-256x256.pkl",
1024
  "G": None,
1025
  "conditional": False
1026
  },
1027
  "ImageNet 64px": {
1028
- "path": "ImgNet-64x64-v0.pkl",
1029
  "G": None,
1030
  "conditional": True
1031
  }
 
1011
  999: "toilet tissue, toilet paper, bathroom tissue",
1012
  }
1013
 
1014
+ path_ffhq = hf_hub_download(repo_id="brownvc/BaselineGAN-FFHQ-256x256", filename="network-snapshot-final.pkl", local_dir="ffhq")
1015
+ path_imagenet = hf_hub_download(repo_id="brownvc/BaselineGAN-ImgNet-64x64-v0", filename="network-snapshot-final.pkl", local_dir="imagenet")
 
 
 
1016
 
1017
  # Configuration
1018
  networks = {
1019
  "FFHQ (Faces) 256px": {
1020
+ "path": "path_ffhq",
1021
  "G": None,
1022
  "conditional": False
1023
  },
1024
  "ImageNet 64px": {
1025
+ "path": "path_imagenet",
1026
  "G": None,
1027
  "conditional": True
1028
  }