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

Code getting stuck at 635 in trainer.py #9

Closed
NiranthS opened this issue Dec 6, 2020 · 4 comments
Closed

Code getting stuck at 635 in trainer.py #9

NiranthS opened this issue Dec 6, 2020 · 4 comments

Comments

@NiranthS
Copy link
Contributor

NiranthS commented Dec 6, 2020

I tried to run the training script, the terminal shows "Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 8694 MB memory) -> physical GPU (device: 0, name: GeForce RTX 2080 Ti, compute capability: 7.5)" and gets stuck at line 644 in trainer.py(found using pdb)

@williamljb
Copy link
Owner

Hi NiranthS,

I am not sure. Can you print debugging messages around line 644 to accurately locate this? Line 644 seems normal to me and shouldn't cause problems.

@NiranthS
Copy link
Contributor Author

NiranthS commented Dec 8, 2020

Sorry, it was line 635 that has sess.run.
Also, the problem was on my side. The conversion of datasets into tfrecords was not done properly. Now it is running.

But, the loss is increasing and going to nan eventually. Any ideas what might be causing this?

@NiranthS NiranthS changed the title Code getting stuck at 644 in trainer.py Code getting stuck at 635 in trainer.py Dec 8, 2020
@williamljb
Copy link
Owner

This might because the learning rate is too large. Try reducing the learning rate to 1/10 of original.

@NiranthS
Copy link
Contributor Author

Tried it nut there was no difference by changing the learning rate. Will try to change other parameters. Thank You.

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