BiRefNet_lite-2K / BiRefNet_config.py
ZhengPeng7's picture
Uploading the BiRefNet_lite for 2K.
3007575
raw
history blame contribute delete
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)