why sparse autoencoder can work only with small images sizes

5 ビュー (過去 30 日間)
Abdussalam Elhanashi
Abdussalam Elhanashi 2021 年 6 月 16 日
回答済み: ytzhak goussha 2021 年 6 月 30 日
Hi,
I am looking why in example below sparse autoencoder can work only with small images such as digithand written dataset, but when I tried with typical images sizes i get bad reconstruction
looking for your support
Best,

回答 (1 件)

ytzhak goussha
ytzhak goussha 2021 年 6 月 30 日
To sove my problem, you can implemented a CNN encoder-decoder net
This worked very well for large images when I tried.
See this example:
In this example, they show how to a train Variational AutoEncoder (VAE) but you don't have to do that.
You can create the encoder and decoder sections on the same net and train like a regular autoencoder with multiple downsampling to a small vector followed by multiply upsampling layers (transposeCNN) until you reach the same size as input images.
If this doesnt work, try training each encoder-decoder layer one step at a time, like an onion from the outside inwards.
First create a net with one downsampling and one upsampling layer.
Then, load it in network desing app and add another pair of downsampling and upsampling layer between these two and tain again, and repeate this until you reach you desired downsampled vector length.
After that, you can either split the network into two networks or use "activations" function to activate the compressed layer to encode the images.

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by