Skip to content
Snippets Groups Projects
Commit bc7f986c authored by nz11's avatar nz11
Browse files

changed GlobalAveragePooling2D to AveragePooling2D

parent 571b90e8
No related branches found
No related tags found
No related merge requests found
import sys import sys
import os import os
os.environ['CUDA_VISIBLE_DEVICES'] = '1' os.environ['CUDA_VISIBLE_DEVICES'] = '1'
...@@ -102,7 +101,8 @@ def get_mobilenet(alpha=1, depth_multiplier=1): ...@@ -102,7 +101,8 @@ def get_mobilenet(alpha=1, depth_multiplier=1):
_depthwise_conv_block(1024, alpha, depth_multiplier) _depthwise_conv_block(1024, alpha, depth_multiplier)
model.add(Dropout(rate=0.5)) model.add(Dropout(rate=0.5))
model.add(GlobalAveragePooling2D()) model.add(AveragePooling2D(pool_size=2))
model.add(Flatten())
model.add(Dense(10, activation='softmax')) model.add(Dense(10, activation='softmax'))
return model return model
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment