Commit 2ae9c79
committed
fix: count_input_cfg_levels now resolves string file references
When input_cfg is overridden via CLI to a YAML file path (e.g.
model.train_ds.input_cfg=train_all.yaml), the level counter only saw
the top-level string and reported 1 level, causing reweight_temperature
to broadcast incorrectly. Now it loads referenced YAML files to discover
nested input_cfg keys, matching the runtime behavior of
parse_and_combine_datasets.
Signed-off-by: Xuesong Yang <1646669+XuesongYang@users.noreply.github.com>1 parent 78694d5 commit 2ae9c79
2 files changed
Lines changed: 51 additions & 2 deletions
File tree
- nemo/collections/common/data/lhotse
- tests/collections/common
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
476 | 476 | | |
477 | 477 | | |
478 | 478 | | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
479 | 485 | | |
480 | 486 | | |
481 | 487 | | |
| |||
493 | 499 | | |
494 | 500 | | |
495 | 501 | | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
496 | 511 | | |
497 | 512 | | |
498 | 513 | | |
499 | 514 | | |
500 | 515 | | |
501 | | - | |
502 | | - | |
| 516 | + | |
| 517 | + | |
503 | 518 | | |
504 | 519 | | |
505 | 520 | | |
| |||
Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
403 | 437 | | |
404 | 438 | | |
405 | 439 | | |
| |||
0 commit comments