ArrowLuo/CLIP4Clip

Directly pass the entire config as a argument to a function

deepalchemist opened this issue · 0 comments

It is very unfriendly to directly pass the entire config as a argument to a function, e.g.,

def from_pretrained(cls, cross_model_name, state_dict=None, cache_dir=None, type_vocab_size=2, *inputs, **kwargs):