Spaces:
Runtime error
Runtime error
zhzluke96 commited on
Commit ·
db7cbc6
1
Parent(s): ebc4336
update
Browse files36 unmodified lines3738394041424336 unmodified linesenhancer = Enhancer(hparams)state_dict = torch.load(Path(MODELS_DIR) / "resemble-enhance" / "mp_rank_00_model_states.pt",map_location="cpu",)["module"]enhancer.load_state_dict(state_dict)enhancer.to(self.device).eval()36 unmodified lines3738394041424336 unmodified linesenhancer = Enhancer(hparams)state_dict = torch.load(Path(MODELS_DIR) / "resemble-enhance" / "mp_rank_00_model_states.pt",map_location=self.device,)["module"]enhancer.load_state_dict(state_dict)enhancer.to(self.device).eval()
modules/Enhancer/ResembleEnhance.py+1-1