BiRefNet-DIS5K-TR_TEs / BiRefNet_config.py
ZhengPeng7's picture
Initial uploading of BiRefNet model trained on DIS-TR and DIS-TEs for DIS.
bc71d93
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)