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

有关model_common_train代码中的问题 #6

Open
DanielCho-HK opened this issue Mar 4, 2022 · 2 comments
Open

有关model_common_train代码中的问题 #6

DanielCho-HK opened this issue Mar 4, 2022 · 2 comments

Comments

@DanielCho-HK
Copy link

作者您好,请问model_common_train.py的931行代码
filter_curr_stroke_image_soft = tf.multiply(tf.subtract(1.0, curr_state_soft), curr_stroke_image_large)
这里是不是应该改为
filter_curr_stroke_image_soft = tf.multiply(curr_state_soft, curr_stroke_image_large)
不需要tf.subtract(1.0, curr_state_soft)这个一步操作

@MarkMoHR
Copy link
Owner

MarkMoHR commented Mar 4, 2022

因为curr_state_soft就是一个0到1的值,这里不使用tf.subtract(1.0, curr_state_soft)也可以,但是其他很多相关的地方就要做相应修改了

@DanielCho-HK
Copy link
Author

嗯嗯,谢谢您。也是在这个model_common_train.py文件里,960行的代码
new_cursor_offset_next = tf.concat([new_cursor_offset_next[:, :, 1:2], new_cursor_offset_next[:, :, 0:1]], axis=-1)
这里为什么将y和x调换了顺序呢

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