mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-26 18:24:18 +00:00
update comments
This commit is contained in:
parent
1ca4646562
commit
864914f9a9
@ -648,7 +648,9 @@ def compute_loss(
|
|||||||
feature = feature.to(device)
|
feature = feature.to(device)
|
||||||
|
|
||||||
supervisions = batch["supervisions"]
|
supervisions = batch["supervisions"]
|
||||||
events = supervisions["audio_event"] # the label indices are in CED format
|
events = supervisions[
|
||||||
|
"audio_event"
|
||||||
|
] # the label indices are in CED format (https://github.com/RicherMans/CED)
|
||||||
labels, _ = str2multihot(events, n_classes=params.num_events)
|
labels, _ = str2multihot(events, n_classes=params.num_events)
|
||||||
labels = labels.to(device)
|
labels = labels.to(device)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user