MCPcopy Create free account
hub / github.com/CandleLabAI/PCBSegClassNet / build

Method build

src/models/network.py:51–57  ·  view source on GitHub ↗

build encoder and final model

(self)

Source from the content-addressed store, hash-verified

49 self.num_classes = opt["train"]["num_classes"]
50
51 def build(self):
52 """
53 build encoder and final model
54 """
55 encoder = get_encoder(self.image_height, self.image_width)
56 model = get_classification(encoder, self.num_classes)
57 return model
58
59
60def get_model(opt):

Callers 1

get_modelFunction · 0.95

Calls 2

get_encoderFunction · 0.85
get_classificationFunction · 0.85

Tested by

no test coverage detected