【发布时间】:2019-12-20 11:53:29
【问题描述】:
我正在练习神经风格迁移,在这里我遇到了成本问题。经过几次迭代,成本变成了 NaN。这里可能有什么问题?我应该把重点放在哪里?
Iteration 0 :
total cost = 1919359.6
content cost = 125.083374
style cost = 47952.72
Iteration 1 :
total cost = nan
content cost = nan
style cost = nan
Iteration 2 :
total cost = nan
content cost = nan
style cost = nan
Iteration 3 :
total cost = nan
content cost = nan
style cost = nan
一般来说,我没有一个很好的计划来弄清楚 nan 发生在哪里。尤其是 TensorFlow,我不熟悉调试技术。
代码在这里:https://github.com/enyangxxx/neuralStyleTransferMonet 这是 Coursera 课程的代码,我想稍后将其应用于我自己的主题:)
【问题讨论】:
-
让学习率尽可能小,给我们另一个结果?
-
你修好了吗?我在同一个练习中遇到了完全相同的问题
-
很遗憾没有,但是嘿,我们可以尝试一起修复它吗?
标签: python tensorflow nan