import tensorflow as tf

                end = (i + 1) * cfgs.BATCH_SIZE
                img = img_batch[start:end, :, :, :]
                pretrain_zoo = PretrainModelZoo()
                if self.cfgs.NET_NAME in pretrain_zoo.pth_zoo or self.cfgs.NET_NAME in pretrain_zoo.mxnet_zoo:
                    img = img / tf.constant([cfgs.PIXEL_STD])

                gtboxes_and_label_h = get_horizen_minAreaRectangle(
                    tf.reshape(gtboxes_and_label_batch[start:end], [-1, 9]))
