Improve generator namings, Flip args to source then target

This commit is contained in:
henryruhs
2025-03-11 14:43:09 +01:00
parent f63bc788ac
commit bf696be097
5 changed files with 24 additions and 22 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ from os import makedirs
import torch
from .models.generator import AdaptiveEmbeddingIntegrationNetwork
from .models.generator import Generator
CONFIG = configparser.ConfigParser()
CONFIG.read('config.ini')
@@ -18,7 +18,7 @@ def export() -> None:
makedirs(directory_path, exist_ok = True)
state_dict = torch.load(source_path, map_location = 'cpu').get('state_dict').get('generator')
model = AdaptiveEmbeddingIntegrationNetwork()
model = Generator()
model.load_state_dict(state_dict)
model.eval()
model.ir_version = ir_version