Explaining the data preparation

Now let's get to the coding part for the data preprocessing. From now on, we will show you what we have changed from the original repository of the tensorflow/models. Basically, we take the code to the process flowers dataset as the starting point and modify them to suit our needs.

In the download_and_convert_data.py file, we have added a new line at the beginning of the file:

from datasets import download_and_convert_diabetic 
and a new else-if clause to process the dataset_name "diabetic" at line 69: 
  elif FLAGS.dataset_name == 'diabetic': 
      download_and_convert_diabetic.run(FLAGS.dataset_dir)

With this code, we can call the run method in the download_and_convert_diabetic.py in the datasets folder. This is a ...

Get Machine Learning with TensorFlow 1.x now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.