项目作者: ariss95

项目描述 :
image reconstruction with pytorch
高级语言: Python
项目地址: git://github.com/ariss95/image_reconstructon_examples.git
创建时间: 2021-02-07T20:37:25Z
项目社区:https://github.com/ariss95/image_reconstructon_examples

开源协议:

下载


image reconstruction

this repository contains two examples of reconstructing input images/videos with deep learning methods using pyTorch.

Auto Encoder

A simple auto encoder as described here:

it maps the images into the code, and then maps the code to the reconstructed images.

examples

Input images are on the first row.

first example of input and output digits from the MNIST dataset

second example of input and output digits from the MNIST dataset

dataset: MNIST

RNN

a simple, stacked Reccurent Neural Network model from pyTorch with ReLU activation function.

pytorch.org/docs/stable/generated/torch.nn.RNN.html

the loss function (mean square error) is minimized using Adam optimization.

examples

first example of input and output frames from the moving MNIST dataset

second example of input and output frames from the moving MNIST dataset

dataset: moving MNIST

data_loader.py

This script contains a class for easy loading of data from the moving MNIST dataset.

The dataset is splitted in training-validation and testing subsets.
The training set is being shuffled after loading all data from it.

plot_utils.py

code for displaying images using matplotlib

For every method, the properties of the model are in the file model“method name”.py and the rest under the train“method name”.py