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

Function get_classification

src/models/blocks.py:393–401  ·  view source on GitHub ↗
(encoder, num_classes)

Source from the content-addressed store, hash-verified

391 return model
392
393def get_classification(encoder, num_classes):
394 inputs = encoder.inputs
395 T1 = encoder.output
396 gap = tf.keras.layers.GlobalAveragePooling2D()(T1)
397 d1 = tf.keras.layers.Dense(128, activation="relu")(gap)
398 d2 = tf.keras.layers.Dense(num_classes, activation="softmax")(d1)
399
400 model = tf.keras.Model(inputs=inputs, outputs=d2, name="pcb-classification")
401 return model

Callers 1

buildMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected