def METHOD_NAME(cls, model):
    for param_set in ['hyper_params', 'model_params']:
        for k in model[param_set].keys():
            if type(model[param_set][k]) == type(b''):
                model[param_set][k] = model[param_set][k].decode('utf-8')
    return model