How can i input a 2-d extracted features by wavelet scattering to a deep learning network

6 vues (au cours des 30 derniers jours)
dear all,
please i ask to a way that enable me to add a layer that hold the extracted features from wavelet scattering to a deep network?
the input in the deep network usually an input layer that hold the image datastore
  1 commentaire
yanqi liu
yanqi liu le 7 Mar 2022
may be use feature as input 4-D matrix,and use Layers to train it
if possible,may be upload your data to analysis

Connectez-vous pour commenter.

Réponses (1)

Shubham
Shubham le 23 Jan 2024
Hi Nagwa,
To input 2-D extracted features by wavelet scattering into a deep learning network, you can follow these general steps:
  1. Extract Wavelet Scattering Features: Use the Wavelet Scattering Transform to extract features from your images. In MATLAB, you can use the waveletScattering object to perform this operation. The output will be a set of coefficients that represent your image in the scattering domain. Refer to this documentation link: https://in.mathworks.com/help/wavelet/ref/waveletscattering.html
  2. Prepare the Data: Organize the scattering coefficients in a format suitable for training. If you have multiple images, you should have a corresponding set of scattering coefficients for each image. These coefficients can be arranged into a matrix or a cell array, depending on their size and consistency.
  3. Define the Input Layer: Instead of using an imageInputLayer, you will use a featureInputLayer with the size corresponding to the number of scattering coefficients for each image. This will be the first layer of your deep learning network.
  4. Build the Deep Learning Network: Define the rest of the deep learning network architecture using layers like fullyConnectedLayer, reluLayer, softmaxLayer, and classificationLayer. You can also include other types of layers depending on your specific application and network design.
  5. Train the Network: Use the trainNetwork function to train the network. You will need to provide the scattering coefficients as the input data and the corresponding labels as the target data.

Catégories

En savoir plus sur AI for Signals and Images dans Help Center et File Exchange

Produits


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by