Comments (5)
Hi,
I have updated the steps to instantiate the model and load the checkpoint in here. Thanks.
from speecht5.
Hi, I'm glad that it helps you.
Yes, if you just want to load the model, you only need to put the dictionary under the paths. More concretely, you need to put the text dictionary under data
and the pseudo-code dictionary under hubert_label_dir
since they are needed to set up the task in here.
The pseudo-code dictionary can be created by the code here, where n_clusters is 500. The text dictionary can be downloaded in here.
You may need to follow the dataset code for preparing some dummy inputs and doing forward passes.
Thanks!
from speecht5.
Hi, thanks for the quick reply and for providing the instructions! I had a few more questions
In the updated code we need access to hubert_label_dir
, and data
here to create the task
object which is used while defining the model architecture:
checkpoint['cfg']['task'].t5_task = 'pretrain'
checkpoint['cfg']['task'].hubert_label_dir = "/path/to/hubert_label"
checkpoint['cfg']['task'].data = "/path/to/tsv_file"
task = SpeechT5Task.setup_task(checkpoint['cfg']['task'])
model = T5TransformerModel.build_model(checkpoint['cfg']['model'], task)
Are there small dummy files which can be used here, or a way to define the model architecture without these files?
I just want to load the model using the SpeechT5 Base pretrained weights provided in the Readme (here) to inspect it, and maybe do some forward passes on dummy inputs, is it necessary to download the data for this (which is pretty huge)?
Thanks in advance!
from speecht5.
Thanks a lot, this helped me load the model!
The pseudo-code dictionary code is here for future reference for anyone, the link above was referring to the task code.
from speecht5.
Oh yes, sorry for the mistake. If you have further problems, please tell me.
from speecht5.
Related Issues (20)
- VATLM: Error when loading finetuned checkpoints for infer_s2s
- pretrain loss HOT 4
- Getting TTS output voice close to the training data - Finetuning on different language HOT 2
- Voice Conversion - Error with Some Mono, 16kHz, 16bit Audio HOT 2
- Reproduce ASR experiment results in Hugging Face
- Generate the N-best (top few) hypotheses
- Is end-to-end S2ST possible with Speecht5?
- ASR SpeechT5 training - model predicts same output for different inputs
- SpeechT5 - TTS - Tokenizer adding `▁` token between newly added Vietnamese characters HOT 1
- The size of tensor a (674) must match the size of tensor b (600) at non-singleton dimension 1 HOT 1
- 是否支持中文转语音? HOT 4
- How to setting language when do S2T HOT 1
- Baseline implementation HOT 1
- Text feature extraction using SpeechLM
- British English TTS model HOT 1
- "SpeechT5" on Android OS
- Link to train_960.tsv is broken
- What is the time taken to converge for the hidden unit tokenizer?
- Does the pre-trained model for hidden unit tokenizer use speaker embeddings?
- extract transorformer layer feature HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from speecht5.