Comments (14)
Hi @liu-x-p,
Are you running the evaluation on the pretrained model? I've just re-run the encode and evaluate scripts on my side and they seem to work fine. Could you send the exact commands you used with encode.py
and zerospeech2020-evaluate
?
from zerospeech.
@bshall Thank you for your reply.
The commands I used are
python encode.py checkpoint=checkpoints/2019english/model.ckpt-200000.pt out_dir=test dataset=2019/english
zerospeech2020-evaluate 2019 -j 2 -d cosine --dataset ./data ./submissionzsmyuando200k -o submissionzsmyuando200k/2019.json
The model is trained following your instruction. The model.ckpt-200000.pt was trained with resuming from early ckpt, but I also tried the model without resume, it also have tis problem.
from zerospeech.
No problem @liu-x-p,
The zerospeech2020-evaluate
script expects the directory structure to look like submission/2019/english/test
so could you try:
python encode.py checkpoint=checkpoints/2019english/model.ckpt-200000.pt out_dir=submission/2019/english/test dataset=2019/english
and then run:
zerospeech2020-evaluate 2019 -j 2 -d cosine --dataset ./data submission/
from zerospeech.
@bshall But I moved the test files to the correct directory before evaluate. And I can really run the evaluate script if I only evaluate,the test
files in submission/2019/english/
, but once I move the auxiliary_embedding1
directory into it and run evaluate, it will go wrong.
from zerospeech.
If you run:
python encode.py checkpoint=checkpoints/2019english/model.ckpt-200000.pt out_dir=submission/2019/english/test dataset=2019/english save_auxiliary=true
It will put everything in the correct directory structure (including the auxiliary embeddings). Then you can just run:
zerospeech2020-evaluate 2019 -j 2 -d cosine --dataset ./data submission/
and it'll evaluate everything (no need to copy any of the folders). Hopefully that works for you?
from zerospeech.
@bshall It still report that error. :(
Maybe I should just not use the Auxiliary embedding
from zerospeech.
That's strange. Could you attach the S011_2504494747.txt
file and the S011_2504494747.mel.npy
file so I can try to figure out what's going wrong?
from zerospeech.
Thank you for your help. I uploaded the S011_2504494747.txt files for both test and auxiliary_embedding1
S011_2504494747_auxiliary.txt
S011_2504494747_test.txt
from zerospeech.
from zerospeech.
Thanks @liu-x-p, I think you might be using an altered version of encode.py
. Can you compare your's against lines 39-45 here? It seems like your auxiliary embeddings are hooking on to a different layer in the encoder (and don't use transpose to get the correct ordering of dimensions).
from zerospeech.
@bshall They're the same.
But I changed some layers in the model, could that be the reason? I didn't change the parameters in the code.
from zerospeech.
Yip, that's the problem. If you want to change layers you'll also have to change where the forward hook is registered. You need to register it on the layer where you want to extract the auxiliary embeddings and you need to make sure the dimensions are ordered correctly i.e. whether to transpose or not.
from zerospeech.
Thank you! @bshall
I haven't use hook, and I searched for it and checked the encode.py
. It did point to a different layer's output, and I changed it then it works.
from zerospeech.
No problem @liu-x-p.
from zerospeech.
Related Issues (17)
- Does this work with the unseen speech? HOT 3
- pooch seems to be also a required dependency HOT 2
- keyerror when preprocess data HOT 6
- Can it run on cpu for real time voice conversion HOT 1
- How to perform Acoustic Unit Discovery?
- Time pre epoch
- About sampling rate 8 kHz
- Why is batch_size = 52 instead of 32 or 64?
- the speaker id
- How to train the model without using apex amp (automatic mixed precision)?
- Running on multiple GPUs
- Use as Universal Vocoder HOT 3
- How did you installing Apex? HOT 3
- I want to train this model in vctk dataset, but i don't know how to generate the json files provided by you? HOT 7
- ImportError when trying to compute ABX score HOT 4
- RuntimeWarning: invalid value encountered in log 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 zerospeech.