Skip to content

Instantly share code, notes, and snippets.

@bpatra
Created December 5, 2020 23:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bpatra/584290fbd46f8267e5f4f63eecfe1b6c to your computer and use it in GitHub Desktop.
Save bpatra/584290fbd46f8267e5f4f63eecfe1b6c to your computer and use it in GitHub Desktop.
layer_outputs = [layer.output for layer in model.layers[:depth]]
activation_model = models.Model(inputs=model.input, outputs=layer_outputs)
predictions = models.predict(input_img_tensor)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment