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 initial cost is 0 #5

Open
ghost opened this issue Oct 2, 2016 · 5 comments
Open

the initial cost is 0 #5

ghost opened this issue Oct 2, 2016 · 5 comments

Comments

@ghost
Copy link

ghost commented Oct 2, 2016

the initial cost is 0 so no optimization happens

@xiaoyu-meng-mxy
Copy link

same problem. Is there any solutions for this?

@xiaoyu-meng-mxy
Copy link

maybe you should delete line 283

@ashwin-999
Copy link

i'm running it on notebook, and i'm facing the same problem. Any fix?

@robbierolin
Copy link

Cast the constants in the loss functions to floats
e.g.
return (1 / float(4 * N**2 * M**2)) * tf.reduce_sum(tf.pow(G - A, 2))

@amseet
Copy link

amseet commented Dec 15, 2017

Hi,
I did the changes you recommended by @robbierolin, but now I get nan values for sum and black patches on the image.

Can anyone help?

Thank you in advance.

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

4 participants