Time to sleep so I will write a response quick.

Your scenario is very real but usually not a priority to be handled in the object detection algorithm now. Make a final prediction for each cell only. Just hope that the center of the object may locate in a different cell. So a lot of algorithms has issues for very close objects.

Written by

Deep Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store