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

Function at_base

model/attribute_transformer.py:923–929  ·  view source on GitHub ↗
(pretrain_path)

Source from the content-addressed store, hash-verified

921
922
923def at_base(pretrain_path):
924 student = vit_base()
925 weight = torch.load(pretrain_path, map_location='cpu')
926 msg = student.load_state_dict(weight, strict=False)
927 print(msg)
928 model = AttributeTransformer(student)
929 return model
930
931
932def at2_base(pretrain_path, num_attribute=28, feat_channal=197, grad_from_block=11):

Callers

nothing calls this directly

Calls 2

vit_baseFunction · 0.90

Tested by

no test coverage detected