@@ -148,13 +148,15 @@ def get_crp(self, **kwargs):
148
148
class OggZipHdfDataInput :
149
149
def __init__ (
150
150
self ,
151
- oggzip_files : tk .Path ,
151
+ oggzip_files : List [ tk .Path ] ,
152
152
alignments : tk .Path ,
153
153
context_window : Dict ,
154
154
audio : Dict ,
155
- targets : str ,
155
+ targets : Optional [ str ] = None ,
156
156
partition_epoch : int = 1 ,
157
157
seq_ordering : str = "laplace:.1000" ,
158
+ ogg_args : Optional [Dict [str , Any ]] = None ,
159
+ acoustic_mixtures : Optional [tk .Path ] = None ,
158
160
):
159
161
"""
160
162
:param oggzip_files:
@@ -172,6 +174,8 @@ def __init__(
172
174
self .partition_epoch = partition_epoch
173
175
self .seq_ordering = seq_ordering
174
176
self .targets = targets
177
+ self .ogg_args = ogg_args
178
+ self .acoustic_mixtures = acoustic_mixtures
175
179
176
180
def get_data_dict (self ):
177
181
return {
@@ -188,10 +192,11 @@ def get_data_dict(self):
188
192
"class" : "OggZipDataset" ,
189
193
"audio" : self .audio ,
190
194
"partition_epoch" : self .partition_epoch ,
191
- "path" : tuple ( self .oggzip_files . get_path ()) ,
195
+ "path" : self .oggzip_files ,
192
196
"seq_ordering" : self .seq_ordering ,
193
197
"targets" : self .targets ,
194
198
"use_cache_manager" : True ,
199
+ ** (self .ogg_args or {}),
195
200
},
196
201
},
197
202
"seq_order_control_dataset" : "ogg" ,
0 commit comments