File size: 538 Bytes
0fc3616
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""Configuration for the JECT chest-CT encoder."""
from transformers import PretrainedConfig


class JECTConfig(PretrainedConfig):
    model_type = "ject-ct"

    def __init__(self, encoder=None, readout=None, input=None, text=None, logit_scale_log=0.0, logit_bias=0.0, **kwargs):
        self.encoder = encoder or {}
        self.readout = readout or {}
        self.input = input or {}
        self.text = text or {}
        self.logit_scale_log = logit_scale_log
        self.logit_bias = logit_bias
        super().__init__(**kwargs)