MCPcopy
hub / github.com/fundamentalvision/Deformable-DETR / match_name_keywords

Function match_name_keywords

main.py:177–183  ·  view source on GitHub ↗
(n, name_keywords)

Source from the content-addressed store, hash-verified

175
176 # lr_backbone_names = ["backbone.0", "backbone.neck", "input_proj", "transformer.encoder"]
177 def match_name_keywords(n, name_keywords):
178 out = False
179 for b in name_keywords:
180 if b in n:
181 out = True
182 break
183 return out
184
185 for n, p in model_without_ddp.named_parameters():
186 print(n)

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected