EMAGE / models /camn_audio /configuration_camn_audio.py
H-Liu1997's picture
newapp
b03a8f2
from transformers import PretrainedConfig
from omegaconf import OmegaConf
class CamnAudioConfig(PretrainedConfig):
model_type = "camn_audio"
def __init__(self, config_obj=None, **kwargs):
if config_obj is not None:
cfg_dict = OmegaConf.to_container(config_obj, resolve=True)
kwargs.update(cfg_dict)
super().__init__(**kwargs)