1. A control method for an image processing apparatus, the control method comprising: acquiring, as a first acquiring, at least a first template group having a first number of image data layout regions and including a plurality of templates having different layouts from each other and a second template group having a second number, different from the first number, of image data layout regions and including a plurality of templates having different layouts from each other; acquiring, as a second acquiring, at least a first layout candidate information group including a plurality of layout candidate information pieces generated based on the first number of image data pieces and the plurality of templates included in the first template group and a second layout candidate information group including a plurality of layout candidate information pieces generated based on the second number of image data pieces and the plurality of templates included in the second template group; evaluating a plurality of layout candidate information pieces at least including the layout candidate information pieces in the first layout candidate information group and in the second layout candidate information group to provide an evaluation; selecting a template corresponding to one layout candidate information piece of the evaluated plurality of layout candidate information pieces based on the evaluation; and outputting a layout result based on the selected template.
1. A control method for an image processing apparatus, the control method comprising: acquiring, as a first acquiring, at least a first template group having a first number of image data layout regions and including a plurality of templates having different layouts from each other and a second template group having a second number, different from the first number, of image data layout regions and including a plurality of templates having different layouts from each other; acquiring, as a second acquiring, at least a first layout candidate information group including a plurality of layout candidate information pieces generated based on the first number of image data pieces and the plurality of templates included in the first template group and a second layout candidate information group including a plurality of layout candidate information pieces generated based on the second number of image data pieces and the plurality of templates included in the second template group; evaluating a plurality of layout candidate information pieces at least including the layout candidate information pieces in the first layout candidate information group and in the second layout candidate information group to provide an evaluation; selecting a template corresponding to one layout candidate information piece of the evaluated plurality of layout candidate information pieces based on the evaluation; and outputting a layout result based on the selected template. 6. The control method according to claim 1 , further comprising: acquiring, as a third acquiring and in a case where not all evaluations for the plurality of layout candidate information pieces are equal to or higher than a threshold value, at least a third template group having the first number of image data layout regions, including a plurality of templates having different layouts from each other and belonging to a category that is different from a category to which the first template group belongs and a fourth template group having the second number of image data layout regions, including a plurality of templates having different layouts from each other and belonging to a category that is different from a category to which the second template group belongs; and acquiring, as a fourth acquiring and in a case where not all evaluations for the plurality of layout candidate information pieces are equal to or higher than the threshold value, at least a third layout candidate information group including a plurality of layout candidate information pieces generated based on the first number of image data pieces and the plurality of templates included in the third template group and a fourth layout candidate information group including a plurality of layout candidate information pieces generated based on the second number of image data pieces and the plurality of templates included in the fourth template group, wherein the evaluating further includes evaluating, in a case where not all evaluations for the plurality of layout candidate information pieces are equal to or higher than the threshold value, a plurality of layout candidate information pieces at least including the layout candidate information pieces in the third layout candidate information group and in the fourth layout candidate information group and not including the layout candidate information pieces in the first layout candidate information group and in the second layout candidate information group, and wherein the selecting includes selecting, in a case where not all evaluations for the plurality of layout candidate information pieces are equal to or higher than the threshold value, a template corresponding to one layout candidate information piece of the plurality of layout candidate information pieces at least including the layout candidate information pieces in the third layout candidate information group and in the fourth layout candidate information group and not including the layout candidate information pieces in the first layout candidate information group and in the second layout candidate information group based on the further evaluation.