test_v1.1
This commit is contained in:
@@ -1,6 +1 @@
|
||||
#from .fullyconnected import *
|
||||
#from .large import *
|
||||
#from .leaky import *
|
||||
#from .medium import *
|
||||
#from .small import *
|
||||
from .alphago import *
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from keras.layers.core import Dense, Activation, Flatten
|
||||
|
||||
|
||||
def layers(input_shape):
|
||||
return [
|
||||
Dense(128, input_shape=input_shape),
|
||||
Activation('relu'),
|
||||
Dense(128, input_shape=input_shape),
|
||||
Activation('relu'),
|
||||
Flatten(),
|
||||
Dense(128),
|
||||
Activation('relu'),
|
||||
]
|
||||
@@ -1,39 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from keras.layers.core import Dense, Activation, Flatten
|
||||
from keras.layers.convolutional import Conv2D, ZeroPadding2D
|
||||
|
||||
|
||||
def layers(input_shape):
|
||||
return [
|
||||
ZeroPadding2D((3, 3), input_shape=input_shape, data_format='channels_first'),
|
||||
Conv2D(64, (7, 7), padding='valid', data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(48, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(48, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
Flatten(),
|
||||
Dense(1024),
|
||||
Activation('relu'),
|
||||
]
|
||||
@@ -1,40 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from keras.layers import LeakyReLU
|
||||
from keras.layers.core import Dense, Flatten
|
||||
from keras.layers.convolutional import Conv2D, ZeroPadding2D
|
||||
|
||||
|
||||
def layers(input_shape):
|
||||
return [
|
||||
ZeroPadding2D((3, 3), input_shape=input_shape, data_format='channels_first'),
|
||||
Conv2D(64, (7, 7), padding='valid', data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(48, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(48, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
LeakyReLU(),
|
||||
|
||||
Flatten(),
|
||||
Dense(1024),
|
||||
LeakyReLU(),
|
||||
]
|
||||
@@ -1,31 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
from keras.layers.core import Dense, Activation, Flatten
|
||||
from keras.layers.convolutional import Conv2D, ZeroPadding2D
|
||||
|
||||
|
||||
def layers(input_shape):
|
||||
return [
|
||||
ZeroPadding2D((2, 2), input_shape=input_shape, data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), padding='valid', data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((2, 2), data_format='channels_first'),
|
||||
Conv2D(64, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((1, 1), data_format='channels_first'),
|
||||
Conv2D(64, (3, 3), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((1, 1), data_format='channels_first'),
|
||||
Conv2D(64, (3, 3), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D((1, 1), data_format='channels_first'),
|
||||
Conv2D(64, (3, 3), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
Flatten(),
|
||||
Dense(512),
|
||||
Activation('relu'),
|
||||
]
|
||||
@@ -1,33 +0,0 @@
|
||||
from __future__ import absolute_import
|
||||
|
||||
# tag::small_network[]
|
||||
from keras.layers.core import Dense, Activation, Flatten
|
||||
from keras.layers.convolutional import Conv2D, ZeroPadding2D
|
||||
|
||||
|
||||
def layers(input_shape):
|
||||
return [
|
||||
ZeroPadding2D(padding=3, input_shape=input_shape, data_format='channels_first'), # <1>
|
||||
Conv2D(48, (7, 7), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D(padding=2, data_format='channels_first'), # <2>
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D(padding=2, data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
ZeroPadding2D(padding=2, data_format='channels_first'),
|
||||
Conv2D(32, (5, 5), data_format='channels_first'),
|
||||
Activation('relu'),
|
||||
|
||||
Flatten(),
|
||||
Dense(512),
|
||||
Activation('relu'),
|
||||
]
|
||||
|
||||
# <1> We use zero padding layers to enlarge input images.
|
||||
# <2> By using `channels_first` we specify that the input plane dimension for our features comes first.
|
||||
# end::small_network[]
|
||||
Reference in New Issue
Block a user