mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-12-11 06:55:27 +00:00
from local
This commit is contained in:
parent
bac2cb06d5
commit
b972cbaff2
Binary file not shown.
@ -77,6 +77,8 @@ from icefall.utils import (
|
||||
write_error_stats,
|
||||
)
|
||||
|
||||
from train_lora import LoRAHook
|
||||
|
||||
LOG_EPS = math.log(1e-10)
|
||||
|
||||
|
||||
@ -681,8 +683,10 @@ def main():
|
||||
logging.info("About to create model")
|
||||
model = get_transducer_model(params)
|
||||
|
||||
if params.model_name:
|
||||
if '.pt' in params.model_name:
|
||||
load_checkpoint(f"{params.exp_dir}/{params.model_name}", model)
|
||||
elif 'lora' in params.model_name:
|
||||
|
||||
else:
|
||||
if not params.use_averaged_model:
|
||||
if params.iter > 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user