Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parallel Conv net #2

Closed
tofigh- opened this issue Jan 21, 2015 · 1 comment
Closed

parallel Conv net #2

tofigh- opened this issue Jan 21, 2015 · 1 comment

Comments

@tofigh-
Copy link

tofigh- commented Jan 21, 2015

Hi Yajie,
Is it possible to design a network with 4 parallel convolutional networks where the outputs of these four parallel network are connected to a fully connected layer?
The 4 parallel networks are not connected (no share weights) and each of them have their own input (lets say 4 different images are the inputs to these networks)

@ghost
Copy link

ghost commented Jan 23, 2015

We can achieve this by modifying models/cnn.py. For example, we have 2 convolutional networks whose layers are conv_layers_1 and conv_layers_2

The outputs from these two nets are concatenated by
T.concatenate([conv_layers_1[-1].output, conv_layers_2[-1].output], axis=1)
which will be inputs into the fully-connected layer

One way of organizing the inputs is to concatenate them together. Suppose the inputs to the 2 networks have d1 and d2 dimensions. Then we can separate the inputs by:
self.input_1 = self.x[:,0:d1]
self.input_2 = self.x[:,d1:(d1 + d2)]

@ghost ghost mentioned this issue Jan 23, 2015
@ghost ghost closed this as completed Mar 11, 2015
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant