transformers
2f6d51a1 - Fix loading DETR-family configs that store dilation=None (#50934)

Commit
4 hours ago
Fix loading DETR-family configs that store dilation=None (#50934) * Fix loading DETR-family configs that store dilation=None Many published checkpoints without a timm backbone store "dilation": null, which the strict configs reject. Type the field bool | None in DetrConfig, TableTransformerConfig and DeformableDetrConfig (the generated MaskFormerDetrConfig follows DetrConfig), and add a regression test for each. * Remove the null-dilation tests, per review --------- Co-authored-by: Sibi <257175087+sibisrinivasb@users.noreply.github.com>
Author
Parents
Loading