major-katsurAGI commited on
Commit
41ba66e
·
verified ·
1 Parent(s): 06aaaaa

Upload original/BiRefNet_config.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. original/BiRefNet_config.py +11 -0
original/BiRefNet_config.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import PretrainedConfig
2
+
3
+ class BiRefNetConfig(PretrainedConfig):
4
+ model_type = "SegformerForSemanticSegmentation"
5
+ def __init__(
6
+ self,
7
+ bb_pretrained=False,
8
+ **kwargs
9
+ ):
10
+ self.bb_pretrained = bb_pretrained
11
+ super().__init__(**kwargs)