File size: 390 Bytes
b29fdb3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from transformers import PretrainedConfig

class UniformerXXSFinetuneConfig(PretrainedConfig):
    model_type = "uniformer_finetuned"

    def __init__(

        self,

        pretrained: str = 'uniformer_xxs_400',

        out_class: int = 20,

        **kwargs

    ):
        self.pretrained = pretrained
        self.out_class = out_class
        super().__init__(**kwargs)