def rn_top(feat, fc_name, classes): pool7 = pool(feat, 'pool7', pool_type='avg', global_pool=True) scores = fc(pool7, fc_name, classes) return softmax_out(scores)
def rn_top_1(feat, fc_name, classes): poolc2 = pool(feat, 'poolc2', pool_type='avg', global_pool=True) fc1 = fc(poolc2, fc_name, 512) scoresF = fc(fc1, 'bCls1', classes) return sigmoid_out(scoresF)