better check for null manual_data_root

This commit is contained in:
Damian Stewart 2023-06-17 10:38:34 +02:00
parent dd6b37840d
commit 1ab27a9059
1 changed files with 2 additions and 1 deletions

View File

@ -97,7 +97,8 @@ class EveryDreamValidator:
self.config.update({'manual_data_root': self.config['val_data_root']})
if self.config.get('val_split_mode') == 'manual':
if 'manual_data_root' in self.config:
manual_data_root = self.config.get('manual_data_root')
if manual_data_root is not None:
self.config['extra_manual_datasets'].update({'val': self.config['manual_data_root']})
else:
if len(self.config['extra_manual_datasets']) == 0: