Adjusts the compatibility of widths and groups.
(widths, bottle_ratios, groups)
| 105 | |
| 106 | |
| 107 | def adjust_widths_groups_comp(widths, bottle_ratios, groups): |
| 108 | """Adjusts the compatibility of widths and groups.""" |
| 109 | bottleneck_widths = [int(w * b) for w, b in zip(widths, bottle_ratios)] |
| 110 | groups = [min(g, w_bot) for g, w_bot in zip(groups, bottleneck_widths)] |
| 111 | bottleneck_widths = [quantize_float(w_bot, g) for w_bot, g in zip(bottleneck_widths, groups)] |
| 112 | widths = [int(w_bot / b) for w_bot, b in zip(bottleneck_widths, bottle_ratios)] |
| 113 | return widths, groups |
| 114 | |
| 115 | |
| 116 | def generate_regnet(width_slope, width_initial, width_mult, depth, q=8): |
no test coverage detected