You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @yhenon!
Thanks for creating a repository on SPP methods!
I've used your code in the following model, but I encountered the following error. Please help me.
.
.
...
pooling_regions = [1, 2, 4]
num_rois = 2
num_channels = 3
in_img = Input(shape=(224,224, num_channels))
in_roi = Input(shape=(num_rois, 4))
Hi @yhenon!
Thanks for creating a repository on SPP methods!
I've used your code in the following model, but I encountered the following error. Please help me.
.
.
...
pooling_regions = [1, 2, 4]
num_rois = 2
num_channels = 3
in_img = Input(shape=(224,224, num_channels))
in_roi = Input(shape=(num_rois, 4))
model = Sequential([
ZeroPadding2D((1,1),input_shape=input_shape),
Conv2D(64, (3, 3),
activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(64, (3, 3), activation='relu'),
MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),
ZeroPadding2D((1,1)),
Conv2D(128, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(128, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),
ZeroPadding2D((1,1)),
Conv2D(256, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(256, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(256, (3, 3), activation='relu'),
MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
MaxPooling2D(pool_size=(2, 2), strides=(2, 2)),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
ZeroPadding2D((1,1)),
Conv2D(512, (3, 3), activation='relu'),
Conv2DTranspose(128, (1, 1), activation='relu', padding='same',strides=(1, 1)),
Conv2DTranspose(256, (4, 4), activation='relu', padding='same', strides=(2, 2)),
Conv2DTranspose(256, (8, 8), activation='relu', padding='same', strides=(4, 4)),
RoiPooling(pooling_regions, num_rois)([in_img, in_roi]),
SpatialPyramidPooling([1,2,4]),
Dense(4096, activation='relu'),
Dropout(0.5),
Dense(4096, activation='relu'),
Dropout(0.5),
Dense(2, activation='softmax')
])
...
TypeError: The added layer must be an instance of class Layer. Found: Tensor("roi_pooling_1/Reshape_42:0", shape=(1, 2, 63), dtype=float32)
The text was updated successfully, but these errors were encountered: