Ali
Ali

Reputation: 21

How to prepare my own dataset in tensorflow with data in form of images and labels in form of a text file?

I want to train a convolutional neural network (CNN) in tensor-flow, I have data in terms of 10,000 images in .png format and labels in a text file in .txt format, where each line contains a single label (over all 10,000 lines). How can I prepare my own dataset in tensor-flow and train the network?

Upvotes: 2

Views: 2551

Answers (1)

David Wong
David Wong

Reputation: 748

I imagine your main concern is the image part. Either convert to jpg and use decode_jpeg, or use ImageFlow to convert to TFRecords.

Upvotes: 1

Related Questions