zoukankan      html  css  js  c++  java
  • Project Report: A Dog Breed Classifier

    A Dog Breed Classifier

    Setting

    • Jupyter Notebook
    • Keras

    Model

    • ResNet50

    Implementation

    • normalization
      • the mean pixel must be subtracted from every pixel in each image
    • keras.applications.resnet50
      • ResNet50
      • preprocess_input  (source)
        • input: a tensor
        • return: Preprocessed tensor
    • numpy.argmax
      • By taking the argmax of the predicted probability vector, we obtain an integer corresponding to the model's predicted object class, which we can identify with an object category through the use of the dictionary.
    • keras.layers
      • Conv2D
        • keras.layers.Conv2D(filters, kernel_size, strides=(1, 1), padding='valid', data_format=None, dilation_rate=(1, 1), activation=None, use_bias=True, kernel_initializer='glorot_uniform', bias_initializer='zeros', kernel_regularizer=None, bias_regularizer=None, activity_regularizer=None, kernel_constraint=None, bias_constraint=None)
        • When using this layer as the first layer in a model, provide the keyword argument input_shape (tuple of integers, does not include the sample axis), e.g. input_shape=(128, 128, 3) for 128x128 RGB pictures in  data_format="channels_last".
      • MaxPooling2D
      • GlobalAveragePooling2D
  • 相关阅读:
    2822 爱在心中
    P1707 刷题比赛
    1269 匈牙利游戏
    1482 路线统计
    Codevs 1287 矩阵乘法&&Noi.cn 09:矩阵乘法(矩阵乘法练手题)
    P2022 有趣的数
    1087 麦森数
    P1111 修复公路
    python为在线漫画站点自制非官方API(未完待续)
    逻辑运算0==x和x==0具体解释
  • 原文地址:https://www.cnblogs.com/casperwin/p/7727624.html
Copyright © 2011-2022 走看看