import tensorflow as tf

                                    img = tf.image.crop_to_bounding_box(image=img,
                                                                        offset_height=0,
                                                                        offset_width=0,
                                                                        target_height=tf.cast(h_crop, tf.int32),
                                                                        target_width=tf.cast(w_crop, tf.int32))

                                    outputs = fcos.build_whole_detection_network(input_img_batch=img,
                                                                                 gtboxes_batch_h=gtboxes_and_label_h,
                                                                                 gtboxes_batch_r=gtboxes_and_label_q,
                                                                                 gpu_id=i)
                                    gtboxes_in_img_q = self.drawer.draw_boxes_with_categories(
                                        img_batch=tf.expand_dims(img[0, :, :, :], axis=0),
                                        boxes=gtboxes_and_label_q[0, :, :-1],
                                        labels=gtboxes_and_label_q[0, :, -1],
                                        method=2)
                                    tf.summary.image('Compare/gtboxes_q_gpu:%d' % i, gtboxes_in_img_q)

                                    gtboxes_in_img_h = self.drawer.draw_boxes_with_categories(
                                        img_batch=tf.expand_dims(img[0, :, :, :], axis=0),
                                        boxes=gtboxes_and_label_h[0, :, :-1],
                                        labels=gtboxes_and_label_h[0, :, -1],
                                        method=0)
