In detectron2 there seems to be two settings related to batch size in the config file.
They are
SOLVER.IMS_PER_BATCH and MODEL.ROI_HEADS.BATCH_SIZE_PER_IMAGE
I have seen both being used as batch size online and not sure how they differ. What is the difference and if they work together, how?