How to create 1d image input layer to use convolution1dLayer?

조회 수: 11 (최근 30일)
Xiaohao Sun
Xiaohao Sun 2022년 10월 2일
댓글: Xiaohao Sun 2024년 1월 22일
I am trying to use convolution1dLayer on 1D image inputs. The documentation of convolution1dLayer says
  • For 1-D image input (data with three dimensions corresponding to the spatial pixels, channels, and observations), the layer convolves over the spatial dimension.
So its input format is "SCB". However, I didn't find an inputlayer that output data in the "SCB" format. The imageInputLayer can only output data in "SSCB". How should I input my 1D-image data to feed into convolution1dLayer? Many thanks for any helps in advance!
Best,
Xiaohao

채택된 답변

Conor Daly
Conor Daly 2023년 4월 14일
When working with dlnetwork input layers are not required. So you can work with "SCB" data by directly injecting into the network at the appropriate layer.
The repo linked below contains a network which operates on "SCB" data:
https://github.com/matlab-deep-learning/fourier-neural-operator
  댓글 수: 1
Xiaohao Sun
Xiaohao Sun 2024년 1월 22일
Interesting. Many thanks for your answer and example!
Also, it seems the functionLayer can be used in layer array to reformat the data.

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

추가 답변 (0개)

카테고리

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

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by