Added an empty personalization_config argument to instantiate_from_config when loading LDSR as it is a required argument. (#1722)

This commit is contained in:
Alejandro Gil 2022-12-22 14:14:21 -08:00 committed by GitHub
commit 9ffdf04172
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -944,7 +944,7 @@ class LDSR():
global_step = pl_sd["global_step"]
sd = pl_sd["state_dict"]
config = OmegaConf.load(self.yamlPath)
model = instantiate_from_config(config.model)
model = instantiate_from_config(config.model, personalization_config="")
m, u = model.load_state_dict(sd, strict=False)
model.cuda()
model.eval()