hubert-ecg-small / configuration_hubert_ecg.py
Edoardo-BS's picture
Upload 2 files
65e1c96 verified
raw
history blame
404 Bytes
from transformers import HubertConfig
from typing import List
class HuBERTECGConfig(HubertConfig):
model_type = "hubert_ecg"
def __init__(self, ensemble_length: int = 1, vocab_sizes: List[int] = [100], **kwargs):
super().__init__(**kwargs)
self.ensemble_length = ensemble_length
self.vocab_sizes = vocab_sizes if isinstance(vocab_sizes, list) else [vocab_sizes]