New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why normalize target data ? #14
Comments
Ah, sorry for the confusion. My poor documentation ... On 1st question
The model.py is created based on a template, that's why there are many functions unnecessary for this model. This normalize_target function is used only when the model loads target data from hard disk I/O. This ASVspoof model does NOT use it, and the loaded target is actually [] for this model. This is configured in
The target label (1/0) is inferred from the file names, and it doesn't go through the normalize_target function project-NN-Pytorch-scripts/project/03-asvspoof-mega/lfcc-lcnn-attention-p2s/01/model.py Line 392 in 10fe9fd
Apologize for the missing documentation. On 2nd question
I like case2 because the Loss() can be separated from model(). This is clean for many other models (like this one https://github.com/nii-yamagishilab/project-NN-Pytorch-scripts/blob/master/project/01-nsf/hn-nsf/model.py) For the ASVspoof model, I used case 2.
|
03-asvspoof-mega was directly copied from the experiment sandbox on my workstation. It was gradually implemented from scratch. Thus, it is really in a mess. If you have suggestions to make it easy to understand, your contribution is welcome! |
Hello,I met some problem. |
Hello @sn222333 That error means that the model.forward(input, target) function in What is the python command line when training the model? In 05-nn-vocoders/ilpcnet/00_demo.sh, it is
|
Thank you |
As in the model.py file like: "/project/03-asvspoof-mega/lfcc-lcnn-lstmsum-p2s/01/model.py ", I don't understand why use def normalize_target(self, y): in line #272, I thought the target data was the label just 0 or 1.
Alos don't understand the difference of "# case 2, loss is defined independent of pt_model" and "# case 1, pt_model.loss is available" in line #112 and line #120 of nn_manager.py file.
The text was updated successfully, but these errors were encountered: