简体   繁体   English

tensorflow训练时进度条前的数字是什么意思

[英]What's the meaning of the number before the progress bar when tensorflow is training

Could anyone tell me what's the meaning of '10' and '49' in the following log of tensorflow?谁能告诉我以下 tensorflow 日志中的“10”和“49”是什么意思? Much Thanks非常感谢

INFO:tensorflow:Started compiling INFO:tensorflow:开始编译

INFO:tensorflow:Finished compiling. INFO:tensorflow:编译完成。 Time elapsed: 5.899410247802734 secs经过时间:5.899410247802734 秒

10/10 [==============================] - 23s 2s/step - loss: 2.6726 - acc: 0.1459 10/10 [===============================] - 23s 2s/step - loss: 2.6726 - acc: 0.1459

49/49 [==============================] - 108s 2s/step - loss: 2.3035 - acc: 0.2845 - val_loss: 2.6726 - val_acc: 0.1459 49/49 [==============================] - 108s 2s/step - loss: 2.3035 - acc: 0.2845 - val_loss : 2.6726 - val_acc: 0.1459

Epoch 2/100纪元 2/100

10/10 [==============================] - 1s 133ms/step - loss: 2.8799 - acc: 0.1693 10/10 [==============================] - 1s 133ms/step - loss: 2.8799 - acc: 0.1693

49/49 [==============================] - 17s 337ms/step - loss: 1.9664 - acc: 0.4042 - val_loss: 2.8799 - val_acc: 0.1693 49/49 [==============================] - 17s 337ms/步 - 损失:1.9664 - acc: 0.4042 - val_loss : 2.8799 - val_acc: 0.1693

10 and 49 corresponds to the number of batches which your dataset has been divided into in each epoch. 10 和 49 对应于您的数据集在每个 epoch 中划分的批次数。

For example, in your train dataset, there are totally 10000 images and your batch size is 64, then there will be totally math.ceil(10000/64) = 157 batches possible in each epoch.例如,在您的训练数据集中,总共有 10000 张图像,您的批量大小为 64,那么每个 epoch 总共可能有math.ceil(10000/64) = 157批次。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM