Closed AhmadM-DL closed 5 months ago
@AhmadM-DL thank you for your interest in our project.
Please clone HF repository with checkpoints and use this path to set location for data
parameter
import torch
from artst.tasks.artst import ArTSTTask
from artst.models.artst import ArTSTTransformerModel
checkpoint = torch.load('...path-to-checkpoint')
checkpoint['cfg']['task'].t5_task = 's2t' # or "s2t" for asr
checkpoint['cfg']['task'].data = '...path-to-HF-repository' <--- new line
task = ArTSTTask.setup_task(checkpoint['cfg']['task'])
model = ArTSTTransformerModel.build_model(checkpoint['cfg']['model'], task)
model.load_state_dict(checkpoint['model'])
Check out these demo notebooks
Hello guys, Nice work you did. I wonder how to run inference in a colab books.
I installed fairseq:
Installed AraTST:
But when I run
task = ArTSTTask.setup_task(checkpoint['cfg']['task'])
I am getting the following fairseq error:
FileNotFoundError: [Errno 2] No such file or directory: '/l/users/speech_lab/_SpeechT5PretrainDataset/v1/manifest/dict.txt'
Can you please provide a working colab?