TransWikia.com

Count files in directory (python)

Stack Overflow Asked by user14606934 on January 3, 2021

please would anyone help with codes for grayscale image count in TensorFlow?
This is what I have tried and I am getting smaller count (say 48) compare with more than a thousand images in the folder.

My data in DATADIR:

image_count = len(list(DATADIR))
print("No of Images =", image_count)

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP