I tend to disagree with the 4 and 5 gallon pots. I have proven that you can obtain a better result, space to pot with 2 - 3 gallon square containers. And i would like to explain my findings.
When growing with 5(14 inches) gallon buckets, i found the production increase to be minimal <10g between 3(10 inches) gallon square rose pots. And the loss of space was rather high, I lost space for 2 square rose pots with the 5 gallons.
A rudimentary drawing of canibus strain root structure can be found below. As you can see, a smaller stature, ruderalis prevalent pheno will grow a more spindly short root system in comparison to indica and sativa prevalent plants. Also when you take into consideration, a short life cycle, and minimal intervention, there is plenty of space in a 3 gallon container to accommodate an auto flower.