This is a script I made to convert Coco Json (with data) into TFRecord, which can be used in Tensorflow Object Detection. The code is inspired by https://keras.io/examples/keras_recipes/creating_tfrecords/, Credit goes to Keras documentation
I am using Label studio to label my dataset recently, one of the export options is to export dataset into coco json format. So here you go