1 Star 0 Fork 1

aurae/deepspeech.pytorch

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
train.py 947 Bytes
一键复制 编辑 原始数据 按行查看 历史
Sean Naren 提交于 2021-01-30 20:52 +08:00 . Pytorch Lightning Integration (#569)
import hydra
from hydra.core.config_store import ConfigStore
from hydra_configs.pytorch_lightning.callbacks import ModelCheckpointConf
from deepspeech_pytorch.configs.train_config import DeepSpeechConfig, AdamConfig, SGDConfig, BiDirectionalConfig, \
UniDirectionalConfig, GCSCheckpointConfig
from deepspeech_pytorch.training import train
cs = ConfigStore.instance()
cs.store(name="config", node=DeepSpeechConfig)
cs.store(group="optim", name="sgd", node=SGDConfig)
cs.store(group="optim", name="adam", node=AdamConfig)
cs.store(group="checkpoint", name="file", node=ModelCheckpointConf)
cs.store(group="checkpoint", name="gcs", node=GCSCheckpointConfig)
cs.store(group="model", name="bidirectional", node=BiDirectionalConfig)
cs.store(group="model", name="unidirectional", node=UniDirectionalConfig)
@hydra.main(config_name="config")
def hydra_main(cfg: DeepSpeechConfig):
train(cfg=cfg)
if __name__ == '__main__':
hydra_main()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/bigcash/deepspeech.pytorch.git
git@gitee.com:bigcash/deepspeech.pytorch.git
bigcash
deepspeech.pytorch
deepspeech.pytorch
master

搜索帮助