MCPcopy Create free account
hub / github.com/TPCD/DCCL / meta2_base

Function meta2_base

model/attribute_transformer.py:1182–1188  ·  view source on GitHub ↗
(pretrain_path, dict_attribute, grad_from_block=11)

Source from the content-addressed store, hash-verified

1180
1181
1182def meta2_base(pretrain_path, dict_attribute, grad_from_block=11):
1183 student = vit_base()
1184 weight = torch.load(pretrain_path, map_location='cpu')
1185 msg = student.load_state_dict(weight, strict=False)
1186 print(msg)
1187 model = Meta_Attribute_Generator2(student, dict_attribute, grad_from_block=grad_from_block)
1188 return model

Callers

nothing calls this directly

Calls 2

vit_baseFunction · 0.90

Tested by

no test coverage detected