modelscope_param.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. class modelscope_args():
  2. def __init__(self,
  3. task: str = "",
  4. model: str = "damo/speech_paraformer-large_asr_nat-zh-cn-16k-common-vocab8404-pytorch",
  5. data_path: str = None,
  6. output_dir: str = None,
  7. model_revision: str = None,
  8. dataset_type: str = "small",
  9. batch_bins: int = 2000,
  10. max_epoch: int = None,
  11. accum_grad: int = None,
  12. keep_nbest_models: int = None,
  13. optim: str = None,
  14. lr: float = None,
  15. scheduler: str = None,
  16. scheduler_conf: dict = None,
  17. specaug: str = None,
  18. specaug_conf: dict = None,
  19. ):
  20. self.task = task
  21. self.model = model
  22. self.data_path = data_path
  23. self.output_dir = output_dir
  24. self.model_revision = model_revision
  25. self.dataset_type = dataset_type
  26. self.batch_bins = batch_bins
  27. self.max_epoch = max_epoch
  28. self.accum_grad = accum_grad
  29. self.keep_nbest_models = keep_nbest_models
  30. self.optim = optim
  31. self.lr = lr
  32. self.scheduler = scheduler
  33. self.scheduler_conf = scheduler_conf
  34. self.specaug = specaug
  35. self.specaug_conf = specaug_conf