# OutOfRangeError: read less bytes than requested

**URL:** <https://get-help.theconstruct.ai/t/outofrangeerror-read-less-bytes-than-requested/3986>\
**Category:** ROS Deep Learning With TensorFlow 101\
**Created:** [June 9, 2020, 3:51pm UTC](https://get-help.theconstruct.ai/t/outofrangeerror-read-less-bytes-than-requested/3986 "2020-06-09T15:51:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![info2016frei](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/info2016frei/32/10_2.png) [@info2016frei](https://get-help.theconstruct.ai/u/info2016frei)\
**Post date:** [June 9, 2020, 3:51pm UTC](https://get-help.theconstruct.ai/t/outofrangeerror-read-less-bytes-than-requested/3986/1 "2020-06-09T15:51:35Z")

</div>

run the  
python scripts/visualize\_dataset.py --classes=./data/new\_names.names --dataset=./data/train.tfrecord  
python scripts/visualize\_dataset.py --classes=./data/new\_names.names --dataset=./data/test.tfrecord

but got an error

 ![error](https://get-help.robotigniteacademy.com/uploads/default/original/2X/5/57cff6a73e3732e24f706e6a8bb2ded2af329463.png)

thanks for your help

---

<div class="post-metadata">

**Author:** ![duckfrost2](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/duckfrost2/32/9365_2.png) [@duckfrost2](https://get-help.theconstruct.ai/u/duckfrost2)\
**Post date:** [June 10, 2020, 7:54am UTC](https://get-help.theconstruct.ai/t/outofrangeerror-read-less-bytes-than-requested/3986/2 "2020-06-10T07:54:14Z")

</div>

Go over the number of objects you want to train, you might have the wrong number
