mirror of
https://github.com/wassname/PSPNet-Keras-tensorflow.git
synced 2026-09-12 12:01:22 +08:00
added links to converted weights
added current result images
This commit is contained in:
@@ -32,8 +32,9 @@ def print_activation(model, layer_name, data):
|
||||
intermediate_layer_model = Model(inputs=model.input,
|
||||
outputs=model.get_layer(layer_name).output)
|
||||
io = intermediate_layer_model.predict(data)
|
||||
print (layer_name, array_to_str(io))
|
||||
print(layer_name, array_to_str(io))
|
||||
|
||||
|
||||
def array_to_str(a):
|
||||
return "{} {} {} {} {}".format(a.dtype, a.shape, np.min(a), np.max(a), np.mean(a))
|
||||
return "{} {} {} {} {}".format(a.dtype, a.shape, np.min(a),
|
||||
np.max(a), np.mean(a))
|
||||
|
||||
Reference in New Issue
Block a user