CORE-13 feat: Support RT-DETRv4 detection model (#12748)

This commit is contained in:
Jukka Seppänen
2026-03-29 06:34:10 +03:00
committed by GitHub
parent 3f77450ef1
commit a500f1edac
7 changed files with 922 additions and 3 deletions
+6
View File
@@ -698,6 +698,12 @@ def detect_unet_config(state_dict, key_prefix, metadata=None):
dit_config["audio_model"] = "ace1.5"
return dit_config
if '{}encoder.pan_blocks.1.cv4.conv.weight'.format(key_prefix) in state_dict_keys: # RT-DETR_v4
dit_config = {}
dit_config["image_model"] = "RT_DETR_v4"
dit_config["enc_h"] = state_dict['{}encoder.pan_blocks.1.cv4.conv.weight'.format(key_prefix)].shape[0]
return dit_config
if '{}input_blocks.0.0.weight'.format(key_prefix) not in state_dict_keys:
return None