MCPcopy Create free account
hub / github.com/PaddlePaddle/Research / prepare_model

Function prepare_model

CV/PaddleFSL/utils.py:43–50  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

41 return parser.parse_args()
42
43def prepare_model(args):
44 if args.method == 'protonet':
45 from methods.protonet import ProtoNet
46 model = ProtoNet(args)
47 elif args.method == 'relationnet':
48 from methods.relationnet import RelationNet
49 model = RelationNet(args)
50 return model
51
52def prepare_optimizer(args, model):
53 if args.backbone == 'Conv4':

Callers 2

trainFunction · 0.90
testFunction · 0.90

Calls 2

ProtoNetClass · 0.90
RelationNetClass · 0.90

Tested by 1

testFunction · 0.72