[英]Tensorflow 2.0 - keras training
Sorry for the beginner question as I've just started to pick up Tensorflow
; 对不起,对于初学者的问题,因为我刚刚开始
Tensorflow
; Their 2.0 version seems to be a leap in development. 他们的2.0版本似乎是发展的飞跃。
I've followed the tutorial from this site , which returns the following result: 我已经按照本站点上的教程进行操作, 该站点返回以下结果:
which is quite different from the site: 与网站有很大不同:
I practically copied and pasted the code from the site, but somehow the result is still so different. 我实际上是从站点复制并粘贴了代码,但是在某种程度上,结果仍然如此。
The way I read my graph, there is practically no learning at all. 我阅读图表的方式实际上几乎没有学习。
What causes this kind of scenario? 是什么原因导致这种情况?
How do people normally tackle this kind of scenario? 人们通常如何应对这种情况?
steps_per_epoch = round(BATCH_SIZE) // BATCH_SIZE
steps_per_epoch = num_train//BATCH_SIZE # There is no need to use the round() function.
This is the original code . 这是原始代码 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.