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

the program runs error #38

Closed
lijhong opened this issue May 21, 2018 · 8 comments
Closed

the program runs error #38

lijhong opened this issue May 21, 2018 · 8 comments

Comments

@lijhong
Copy link

lijhong commented May 21, 2018

when I running the program ,there are some errors like this:
[2018-05-20 20:13:24 @logger.py:43] Trigger callback: Total counts of trainable weights: 10582152.
[2018-05-20 20:13:24 @weights_viewer.py:60] Total size of trainable weights: 0G 10M 94K 136B (Assuming32-bit data type.)
|##############################---------------------| 58.00%, 36937/26403 sec. train epoch 1, iter 2900/5000, loss 0.891349, 0.08 batches/sec.Traceback (most recent call last):
File "train.py", line 112, in
trainer.train()
File "/home/anaconda3/lib/python3.6/site-packages/neuralgym/train/trainer.py", line 133, in train
cb.run(sess, step)
File "/home/anaconda3/lib/python3.6/site-packages/neuralgym/callbacks/secondary_trainer.py", line 26, in run
self.train()
File "/home/anaconda3/lib/python3.6/site-packages/neuralgym/train/trainer.py", line 143, in train
assert not np.isnan(loss_value)
AssertionError

I can't solve it. is it machine problem? I hope you give me some ideas. thanks.

@lipanpeng
Copy link

lipanpeng commented May 21, 2018

@lijhong Some losses become NaN. Maybe you can adjust the parameter. I also have this problem before which is solved by adjusting the size of mask.

@lijhong
Copy link
Author

lijhong commented May 21, 2018

@lipanpeng ok, I try it.thanks . I want to konw how much your mask size is .my image size is 64*64

@lipanpeng
Copy link

lipanpeng commented May 21, 2018

@lijhong The size of my mask is 56x56. The images I use are of size 256x256.

@lijhong
Copy link
Author

lijhong commented May 21, 2018

i see.i mask size is 8x8 .but loss decrease slowly

@utunga
Copy link

utunga commented Aug 8, 2018

FWIW I'm also getting this error. Attempting to train with a mask size of 192x192. I will go for a smaller mask but would far prefer to try and avoid this entirely can we clip the value of the loss or something?

@Tiuuuuu
Copy link

Tiuuuuu commented Jun 28, 2023

How can I set the size of mask?

@lipanpeng
Copy link

lipanpeng commented Jun 28, 2023 via email

@Tiuuuuu
Copy link

Tiuuuuu commented Jun 28, 2023

IN inpaint.yml to set the size of mask?
Right?

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

5 participants