Download models/RMBG-1.4/MyConfig.py from killbill007/backup: direct link, hf CLI and curl.
- Browser
- Download file 326 Bytes
-
https://huggingface.co/killbill007/backup/resolve/main/models/RMBG-1.4/MyConfig.py
- Command line
-
hf download hf://killbill007/backup/models/RMBG-1.4/MyConfig.py
-
curl -L -o MyConfig.py https://huggingface.co/killbill007/backup/resolve/main/models/RMBG-1.4/MyConfig.py
326 Bytes
| from transformers import PretrainedConfig | |
| from typing import List | |
| class RMBGConfig(PretrainedConfig): | |
| model_type = "SegformerForSemanticSegmentation" | |
| def __init__( | |
| self, | |
| in_ch=3, | |
| out_ch=1, | |
| **kwargs): | |
| self.in_ch = in_ch | |
| self.out_ch = out_ch | |
| super().__init__(**kwargs) | |