Train a Siamese Network to Compare Images with image size [227 227 3]

조회 수: 10 (최근 30일)
MAHMOUD EID
MAHMOUD EID 2023년 4월 17일
댓글: MAHMOUD EID 2023년 4월 19일
Hi,
I have followed the official tutorial to train Siamese Network to Compare Images
The trained image of the network has a size of [105 105 1]. when I am trying to train a network on images with size [227 227 3] , I usually recieve many errors.
Can someone help which parts in the code need to be change?

답변 (1개)

Sam Chak
Sam Chak 2023년 4월 17일
You should be able to find this line in the tutorial:
imageInputLayer([105 105 1],Normalization="none")
  댓글 수: 1
MAHMOUD EID
MAHMOUD EID 2023년 4월 19일
Hi sam,
Thanks for support.
I have done so on my image dataset and figured out where is the error. Usually the code runs only on the CPU.
-When choosing 'Auto' or 'GPU' , usually the code stop due to unsuffiecient memory in the GPU . I have tried to reduce the miniBatchSize to the minimuim number for example 4 or 5 , and still facing the same error. Do you have an idea tackling this isssue?
- the second point: During training, I notice that the loss during training is usually a fixed number (0.7) and not change across the 1000 iterations. I have tried to change learningRate = 6e-5;
gradDecay = 0.9;
gradDecaySq = 0.99;
but the losses during training not changing, what is supposed to change to reduce the losses during training?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by