Spaces:
Sleeping
Sleeping
31
Browse files
app.py
CHANGED
@@ -162,7 +162,7 @@ def sample_ddim(n_sample, n=20):
|
|
162 |
return samples, intermediate
|
163 |
|
164 |
# load in model weights and set to eval mode
|
165 |
-
nn_model.load_state_dict(torch.load(f"{save_dir}/
|
166 |
nn_model.eval()
|
167 |
print("Loaded in Context Model")
|
168 |
|
|
|
162 |
return samples, intermediate
|
163 |
|
164 |
# load in model weights and set to eval mode
|
165 |
+
nn_model.load_state_dict(torch.load(f"{save_dir}/ft_context_model_31.pth", map_location=device))
|
166 |
nn_model.eval()
|
167 |
print("Loaded in Context Model")
|
168 |
|