Package examples.transferlearning.toyresnet

Functions

getToyResNetJSONConfigFile
Link copied to clipboard
fun getToyResNetJSONConfigFile(): File

Returns JSON file with model configuration, saved from Keras 2.x.

getToyResNetWeightsFile
Link copied to clipboard
fun getToyResNetWeightsFile(): HdfFile

Returns .h5 file with model weights, saved from Keras 2.x.

main
Link copied to clipboard
fun main()

We described ToyResNet in Keras and saved model configuration.

fun main()

Just loading ToyResNet trained in Keras.

fun main()

So, let's update the weights of last layer of the pretrained model from Keras.

fun main()
fun main()
fun main()
fun main()

Just loading ToyResNet trained in Keras, making a copy and using for prediction.