multiple input network with two pictures

i got multyple input network with the same size using deep network desighegher when i trying to train the network ,i have 2 picture input but i get this error ,the sizes are same ,so its wierd

回答 (1 件)

Milan Bansal
Milan Bansal 2023 年 9 月 22 日

0 投票

Hi,
I understand that you are facing an error while working with Multiple-Input Network in which two images are being used as input.
The error is due to a mismatch in the size of the second input image. The "imageInputLayer" expects an image of size (255 × 255 × 3) for the second image but the datastore returns an image of size (225 × 225 × 3).
Kindly change the "inputSize" argument of "imageInputLayer" to (225 × 225 × 3) for the second image to resolve the issue.
imageInputLayer(inputSize = [225 225 3])
Refer to the documentation link to learn more about "imageInputLayer".
Refer to documentation to learn more about Multiple-Input and Multiple-Output Networks.
Hope it helps!

カテゴリ

ヘルプ センター および File ExchangeDeep Learning Toolbox についてさらに検索

質問済み:

2022 年 8 月 14 日

回答済み:

2023 年 9 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by