8000 global_loss += tf.reduce_mean(tf.square(global_out - global_label)) / len(labels); global_loss /= 2;.so damn hard to understand · Issue #81 · chenyilun95/tf-cpn · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

global_loss += tf.reduce_mean(tf.square(global_out - global_label)) / len(labels); global_loss /= 2;.so damn hard to understand #81

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

Open
gcl1991 opened this issue Jun 20, 2019 · 0 comments

Comments

@gcl1991
Copy link
gcl1991 commented Jun 20, 2019
global_loss = 0.
for i, (global_out, label) in enumerate(zip(global_outs, labels)):
    global_label = label * tf.to_float(tf.greater(tf.reshape(valids, (-1, 1, 1, cfg.nr_skeleton)), 1.1))
    global_loss += tf.reduce_mean(tf.square(global_out - global_label)) / len(labels)
global_loss /= 2.

QAQ can somebody help me
why / len(labels) and global_loss /= 2 ?

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

1 participant
0