ZJW666 commited on
Commit
3df5b80
·
1 Parent(s): d9b346f

fist version

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -77,7 +77,8 @@ device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cp
77
  # base_path =
78
  models = dict()
79
  for i in ["pokemon", "art-paint", "flowers", "landscapes","obama"]:
80
- with dnnlib.util.open_url("E:\桌面\Preparation of Papers for IEEE Signal Processing Letters (5-page limit)\codes\projected-gan-clc - 副本\\" +i+".pkl") as f:
 
81
  models[i] = legacy.load_network_pkl(f)['G_ema']
82
 
83
 
 
77
  # base_path =
78
  models = dict()
79
  for i in ["pokemon", "art-paint", "flowers", "landscapes","obama"]:
80
+ config_file_url = hf_hub_url("ZJW666/Projected_GAN_CLC", filename=i+".pkl")
81
+ with dnnlib.util.open_url(config_file_url) as f:
82
  models[i] = legacy.load_network_pkl(f)['G_ema']
83
 
84