Download configuration_ject.py from lukeingawesome/JECT_320_aligned: direct link, hf CLI and curl.
- Browser
- Download file 538 Bytes
-
https://huggingface.co/lukeingawesome/JECT_320_aligned/resolve/main/configuration_ject.py
- Command line
-
hf download hf://lukeingawesome/JECT_320_aligned/configuration_ject.py
-
curl -L -o configuration_ject.py https://huggingface.co/lukeingawesome/JECT_320_aligned/resolve/main/configuration_ject.py
538 Bytes
| """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) | |