Deep learning/Error

Error : Your input ran out of data ; interupting training

비비이잉 2021. 7. 23. 15:41
반응형
14/20 [====================>.........] - ETA: 2s - loss: 4.2294 - accuracy: 0.7258WARNING:tensorflow:Your input ran out of data; interrupting training. Make sure that your dataset or generator can generate at least `steps_per_epoch * epochs` batches (in this case, 20 batches). You may need to use the repeat() function when building your dataset.
20/20 [==============================] - 7s 239ms/step - loss: 4.2294 - accuracy: 0.7258

✔️ 가지고 있는 데이터 수에 비해서 너무 많은 step을 설정하기 때문에 발생하는 이유

✔️ 즉 사전에 설정한 batch의 크기와 학습데이터의 크기에 영향을 받게 된다. 위 경고는 가지고 있는 데이터 수에 비해 너무 많은 step을 설정해서 발생하는 것 같다.

 

—>repeat 을 통해서 값을 바꾸어주면 해결 가능한데 같은 데이터가 얼마만큼 반복되어서 들어가는지에 대한 고민이 필요함.

 

 

 

 

.jupyter → jupyter_notebook_config.

반응형