Revert training label normalization — normalize eval only
Browse files- train_hf_jobs.py +1 -1
train_hf_jobs.py
CHANGED
|
@@ -276,7 +276,7 @@ def main():
|
|
| 276 |
batch["input_features"] = processor(
|
| 277 |
audio_array, sampling_rate=sr, return_tensors="pt"
|
| 278 |
).input_features[0]
|
| 279 |
-
batch["labels"] = processor.tokenizer(
|
| 280 |
return batch
|
| 281 |
|
| 282 |
train_processed = train_dataset.map(preprocess, remove_columns=train_dataset.column_names)
|
|
|
|
| 276 |
batch["input_features"] = processor(
|
| 277 |
audio_array, sampling_rate=sr, return_tensors="pt"
|
| 278 |
).input_features[0]
|
| 279 |
+
batch["labels"] = processor.tokenizer(batch["phrase"]).input_ids
|
| 280 |
return batch
|
| 281 |
|
| 282 |
train_processed = train_dataset.map(preprocess, remove_columns=train_dataset.column_names)
|