RMBG-2.0 / BiRefNet_config.py
OriLib's picture
Upload BiRefNet_config.py
7797789 verified
raw
history blame
298 Bytes
from transformers import PretrainedConfig
class BiRefNetConfig(PretrainedConfig):
model_type = "SegformerForSemanticSegmentation"
def __init__(
self,
bb_pretrained=False,
**kwargs
):
self.bb_pretrained = bb_pretrained
super().__init__(**kwargs)