Initial uploading of the BiRefNet for general use with swin_v1_tiny as the backbone.
224e902
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) | |