필터 지우기
필터 지우기

I want to use vgg16 for grayscale images with one channel

조회 수: 25 (최근 30일)
Aamir Shabbir hussain
Aamir Shabbir hussain 2017년 4월 14일
댓글: abhi abhi 2020년 12월 28일
Hi Guyz.......i need to use CNN VGG16 for training my image samples but my images are gray scale and the input layer of VGG16 alexnet and VGG19 has 3 channels what can i do to resolve this issue. Please let me know some one.
Thanks,
  댓글 수: 1
abhi abhi
abhi abhi 2020년 12월 28일
vgg16 and vgg19 using deep learning how can i design this architecture please help me

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

채택된 답변

Darshan Ramakant Bhat
Darshan Ramakant Bhat 2017년 4월 17일
Since VGG16 is a pretrained model its input configuration cannot be changed.You can copy the first Chanel values to other two channel and create a 3 channel image out of your gray scale image.
rgbImage = cat(3, grayImage, grayImage, grayImage);
Give this image as the input to VGG16. I hope this will workout for you.
  댓글 수: 3
Image Analyst
Image Analyst 2017년 11월 19일
It simply allocates more memory for rgbImage. It should be extremely fast and the computation time should not really be a concern.
Modar Alfadly
Modar Alfadly 2018년 5월 18일
You can do the same as suggested more efficiently by summing up the channels of the kernels of the first convolutional layer.

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

추가 답변 (0개)

카테고리

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