FixRM / MyConfig.py
OwlMaster's picture
e98ba89b451f28cb43d51405bead219aaa7e09e2155c84ad9e1e39dcff0b3115
1169513 verified
raw
history blame
339 Bytes
from transformers import PretrainedConfig
from typing import List
class RMBGConfig(PretrainedConfig):
model_type = "SegformerForSemanticSegmentation"
def __init__(
self,
in_ch=3,
out_ch=1,
**kwargs):
self.in_ch = in_ch
self.out_ch = out_ch
super().__init__(**kwargs)