How to use a CNN to predict free space in a 2d environment with obstacles?
Instead of predicting free space, you can detect shapes/obstacles with a detector  or a mask builder and after determine free spaces locations.

In my opinion, this is a better approach to predict where are obstacles instead of predict where there are no obstacles (free space).