File Exchange

image thumbnail


version 1.0.0 (2.79 KB) by Mahmoud Afifi
Matlab example of a multi-stream-CNN


Updated 28 Oct 2019

From GitHub

View license on GitHub

Example of how to create a multi-stream CNN model in Matlab 2019b

Cite As

Mahmoud Afifi (2021). Multi-stream-CNN (, GitHub. Retrieved .

Comments and Ratings (6)

Poorya Khanali

Thanks for your explanatory example. Is it possible to have the images of different sizes?


@ Mostafa, the multi stream CNN code using custom training loop is here (

Mahmoud Afifi

@Mostafa i think in this case you want to use custom training loop, check this:


Thanks for sharing. How to make both branches share weights?



MATLAB Release Compatibility
Created with R2019b
Compatible with R2019b and later releases
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!