fix bug
Browse files
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 =
|
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()
|