How to customise Fast AI lesson 9 for polygon bounding boxes?

I’ve practised lesson 8, 9 a few times. I’m interested in knowing how to customize lesson 9 for predicting polygon bounding boxes( 8 pts). Should I keep the same anchor boxes and calculate IOU as mentioned in lesson 9? Should I use any other different architecture?