Spaces:
Runtime error
Runtime error
Xu Ma
commited on
Commit
•
42084fd
1
Parent(s):
9561ef3
Update main.py
Browse files
main.py
CHANGED
@@ -348,6 +348,9 @@ def main_func(target, experiment, cfg_arg):
|
|
348 |
with open(cfg_arg.config, 'r') as f:
|
349 |
cfg = yaml.load(f, Loader=yaml.FullLoader)
|
350 |
cfg_default = edict(cfg['default'])
|
|
|
|
|
|
|
351 |
cfg = edict(cfg[cfg_arg.experiment])
|
352 |
cfg.update(cfg_default)
|
353 |
cfg.update(cfg_arg)
|
|
|
348 |
with open(cfg_arg.config, 'r') as f:
|
349 |
cfg = yaml.load(f, Loader=yaml.FullLoader)
|
350 |
cfg_default = edict(cfg['default'])
|
351 |
+
print(f"debug: {cfg_arg.experiment}")
|
352 |
+
print(f"debug: {cfg[cfg_arg.experiment]}")
|
353 |
+
print(f"debug: {edict(cfg[cfg_arg.experiment])}")
|
354 |
cfg = edict(cfg[cfg_arg.experiment])
|
355 |
cfg.update(cfg_default)
|
356 |
cfg.update(cfg_arg)
|