Skip to content

Commit

Permalink
🐛 fix hf.space force abort
Browse files Browse the repository at this point in the history
  • Loading branch information
zhzLuke96 committed Jun 10, 2024
1 parent e969df8 commit f564536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Enhancer/ResembleEnhance.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def load_model(self):
enhancer = Enhancer(hparams)
state_dict = torch.load(
Path(MODELS_DIR) / "resemble-enhance" / "mp_rank_00_model_states.pt",
map_location="cpu",
map_location=self.device,
)["module"]
enhancer.load_state_dict(state_dict)
enhancer.to(self.device).eval()
Expand Down

0 comments on commit f564536

Please sign in to comment.