Sped up upsample_ratio = 1 case for maxwell_shape.