fix styles and console logging

This commit is contained in:
Vladimir Mandic
2023-09-13 16:50:03 -04:00
parent af672d10eb
commit a1120666d8
9 changed files with 13 additions and 11 deletions
+1 -1
View File
@@ -224,7 +224,7 @@ class Hypernetwork:
self.filename = filename
if self.name is None:
self.name = os.path.splitext(os.path.basename(filename))[0]
with progress.open(filename, 'rb', description=f'Loading hypernetwork: [cyan]{filename}', auto_refresh=True) as f:
with progress.open(filename, 'rb', description=f'Loading hypernetwork: [cyan]{filename}', auto_refresh=True, console=shared.console) as f:
state_dict = torch.load(f, map_location='cpu')
self.layer_structure = state_dict.get('layer_structure', [1, 2, 1])
self.optional_info = state_dict.get('optional_info', None)