【问题标题】:CNN model with max pooling Problem onto model具有最大池化的 CNN 模型 问题到模型
【发布时间】:2022-07-19 22:28:14
【问题描述】:

I was Train Neural Network & the CNN model but when i make this model the colab error shows that invalid syntax So, can you help me what is the problem?

model = tf.keras.models.Sequential([ tf.keras.layers.Conv2D(16,(3,3),activation= 'relu', input_shape =(200,200,3)), tf.keras.layers.MaxPool2D(2,2),

                                tf.keras.layers.Conv2D(32,(3,3),activation= 'relu'.
                                tf.keras.layers.MaxPool2D(2,2),
                                
                                tf.keras.layers.Conv2D(64,(3,3),activation= 'relu'.
                                tf.keras.layers.MaxPool2D(2,2),
                                
                                tf.keras.layers.Flatten(),
                                
                                tf.keras.layers.Dense(512,activation= 'relu'),
                                
                                tf.keras.layers.Dense(1,activation='sigmoid')
                                ])

【问题讨论】:

    标签: python tensorflow keras conv-neural-network


    【解决方案1】:

    有“。”而不是“,”。

    tf.keras.layers.Conv2D(64,(3,3),activation= 'relu'.
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-03-09
      • 2021-04-29
      • 1970-01-01
      • 1970-01-01
      • 2018-03-16
      • 2020-04-05
      • 2018-06-09
      相关资源
      最近更新 更多