QHL067 commited on
Commit
0cfd333
·
1 Parent(s): 485bed7
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ nnet_1.eval()
124
  filename = "pretrained_models/t2i_512px_clip_dimr.pth"
125
  checkpoint_path = hf_hub_download(repo_id=repo_id, filename=filename)
126
  nnet_2 = utils.get_nnet(**config_2.nnet)
127
- nnet_2 = nnet.to(device)
128
  state_dict = torch.load(checkpoint_path, map_location=device)
129
  nnet_2.load_state_dict(state_dict)
130
  nnet_2.eval()
 
124
  filename = "pretrained_models/t2i_512px_clip_dimr.pth"
125
  checkpoint_path = hf_hub_download(repo_id=repo_id, filename=filename)
126
  nnet_2 = utils.get_nnet(**config_2.nnet)
127
+ nnet_2 = nnet_2.to(device)
128
  state_dict = torch.load(checkpoint_path, map_location=device)
129
  nnet_2.load_state_dict(state_dict)
130
  nnet_2.eval()