again again cleaning

This commit is contained in:
harisreedhar
2025-03-11 14:43:03 +01:00
committed by henryruhs
parent 3b8b6442fc
commit fcb3390796
11 changed files with 426 additions and 254 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ def export() -> None:
opset_version = CONFIG.getint('exporting', 'opset_version')
makedirs(directory_path, exist_ok = True)
state_dict = torch.load(source_path, map_location = 'cpu')['state_dict']['generator']
state_dict = torch.load(source_path, map_location = 'cpu').get('state_dict').get('generator')
model = AdaptiveEmbeddingIntegrationNetwork(512, 2)
model.load_state_dict(state_dict)
model.eval()