Closed ma-mohsen closed 3 months ago
Thank you @kamilakesbi for your quick response. I appreciate that. so then for further use, we will do this ?!
from diarizers import SegmentationModel
# Path to the directory where the model is saved
model_directory = './speaker-segmentation-fine-tuned-callhome-jpn/checkpoint-XXXX'
# Load the fine-tuned model
fine_tuned_model = SegmentationModel.from_pretrained(model_directory)
# convert it to a pyannote format
model = fine_tuned_model.to_pyannote_model()
Exactly :)
Hi @ma-mohsen,
Thanks for this question! You can save your model locally by specifying
output_dir
in the TrainingArguments of the Trainer:Hope it will help you!