Skip to content
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

train command and L2Error is not defined error #4

Open
dizwe opened this issue Nov 30, 2019 · 1 comment
Open

train command and L2Error is not defined error #4

dizwe opened this issue Nov 30, 2019 · 1 comment

Comments

@dizwe
Copy link

dizwe commented Nov 30, 2019

I tried to train it, with using command you mentioned

python train.py new -af par/arch.basic.json -tf par/train.basic.json -nb 4 -si 1000 -vqn 1000 $run_dir/model%.ckpt $run_dir/librispeech.dev-clean.dat $run_dir/data_slices.dat
However, It causes train.py new: error: unrecognized arguments: data_slices.dat error.
there is no data_slices.dat file in here.

I just deleted that file and tried to execute it. but I found out another error mentioned in 2

self.l2 = L2Error()

I found out that in vq_bn.py StopGrad, ReplaceGrad is not imported in your code. so I used from vqema_bn import StopGrad, ReplaceGrad on top of the code. However, I can't find any sources that import L2Error. How can I import it? I want to resolve NameError: name 'L2Error' is not defined error

@dizwe dizwe changed the title L2Error is not defined error train command and L2Error is not defined error Nov 30, 2019
@hrbigelow
Copy link
Owner

Hi @dizwe , apologies for not noting in the README more clearly, but this project is still under construction and unfortunately there is too much that is changing at the moment. I'm actively working on it though, at the moment trying to port it to run on TPU, which is likely necessary to get the speed needed to train to completion.

I'll update the README again when I get it working on TPU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants