示例#1
0
def global_normalization(inputs, batch_size=100):
    norm = NormLayer(method="gcn")
    lcn = K.function([norm.get_input()], norm.get_output())
    return batchwise_function(lcn, inputs, batch_size=batch_size)
示例#2
0
def contrast_normalization(inputs, batch_size=100):
    X = K.placeholder(ndim=4)
    norm = NormLayer()
    lcn = K.function([X], norm.call(X))
    return batchwise_function(lcn, inputs, batch_size=batch_size)
示例#3
0
文件: image.py 项目: LazyXuan/seya
def global_normalization(inputs, batch_size=100):
    norm = NormLayer(method="gcn")
    lcn = K.function([norm.get_input()], norm.get_output())
    return batchwise_function(lcn, inputs, batch_size=batch_size)
def contrast_normalization(inputs, batch_size=100):
    norm = NormLayer()
    lcn = K.function([norm.get_input()], norm.get_output())
    return batchwise_function(lcn, inputs, batch_size=batch_size)
示例#5
0
文件: image.py 项目: LazyXuan/seya
def contrast_normalization(inputs, batch_size=100):
    norm = NormLayer()
    lcn = K.function([norm.get_input()], norm.get_output())
    return batchwise_function(lcn, inputs, batch_size=batch_size)