jiangyzy commited on
Commit
094b404
1 Parent(s): 320e3ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -195,13 +195,13 @@ def main(args):
195
  config = OmegaConf.load("configs/config_customnet.yaml")
196
  model = instantiate_from_config(config.model)
197
 
198
- model_path='./customnet_v1.pt?download=true'
199
- if not os.path.exists(model_path):
200
- os.system(f'wget https://huggingface.co/TencentARC/CustomNet/resolve/main/customnet_v1.pt?download=true -P .')
201
-
202
- ckpt = torch.load(model_path, map_location="cpu")
203
- model.load_state_dict(ckpt)
204
- del ckpt
205
  model = model.to(device)
206
  sampler = None
207
 
 
195
  config = OmegaConf.load("configs/config_customnet.yaml")
196
  model = instantiate_from_config(config.model)
197
 
198
+ # model_path='./customnet_v1.pt?download=true'
199
+ # if not os.path.exists(model_path):
200
+ # os.system(f'wget https://huggingface.co/TencentARC/CustomNet/resolve/main/customnet_v1.pt?download=true -P .')
201
+ # ckpt = torch.load(model_path, map_location="cpu")
202
+ # model.load_state_dict(ckpt)
203
+ # del ckpt
204
+
205
  model = model.to(device)
206
  sampler = None
207