utils.mkdir(tfrecords_path.rsplit("/", 1)[0]) this throws error while trying to save tfrecord file on windows machine as the path separator for windows is '\'. Made a simple change to accommodate windows as well.
utils.mkdir(os.path.dirname(tfrecords_path))
utils.mkdir(tfrecords_path.rsplit("/", 1)[0])
this throws error while trying to save tfrecord file on windows machine as the path separator for windows is '\'. Made a simple change to accommodate windows as well.utils.mkdir(os.path.dirname(tfrecords_path))