dreamgaussian4d / utils /params_utils.py
jiaweir
init
21c4e64
raw
history blame
337 Bytes
def merge_hparams(args, config):
params = ["OptimizationParams", "ModelHiddenParams", "ModelParams", "PipelineParams"]
for param in params:
if param in config.keys():
for key, value in config[param].items():
if hasattr(args, key):
setattr(args, key, value)
return args