Git Product home page Git Product logo

larsenandreas / ssl_ista Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 8.47 MB

Early stages of incorporating self-supervised with algorithm unrolling. Code was written as part of a master's thesis (60 ECTS) at Aalborg University, Denmark.

License: GNU General Public License v3.0

Python 100.00%
algorithm-unrolling compressive-sensing ista-net lista mae self-supervised-learning sparse-coding transformer vision-transformer

ssl_ista's Introduction

Combining Algorithm Unrolling with Self-Supervised Learning

This project explores the early stages of incorporating self-supervised with algorithm unrolling. Code was written as part of a mathematical-engineering master's thesis (60 ECTS) @ Aalborg University, Denmark.

The implementation of ISTA-Net and MAE (with ViT) is based on the paper "ISTA-Net: Interpretable Optimization-Inspired Deep Network for Image Compressive Sensing" and "Masked Autoencoders Are Scalable Vision Learners" respectively.

Requirements

Created using Python 3.10.6. See requirements.txt for further details.

Usage

ISTA-Net and ista2vec

The script is designed such that variables are changed directly in the code. The training.py script builds and executes the training loop -- Just provide a list image paths.

ISTA-MAE and MAE

The script is designed such that parameters are set in a parameter file, parameters.py or parameters_finetuning.py for pre-training and fine-tuning respectively. The path to the data needs to be specified in the parameter file as well as a model path for fine-tuning. After setting parameters run one of the training files:

  • pre-train_istamae.py
  • pre-train_mae.py
  • train_sr_istamae.py
  • train_sr_mae.py

Credit

Inspired by the original PyTorch implementation "ISTA-Net-PyTorch" by Jian Zhang and "Masked Autoencoders: A PyTorch Implementation" by Xinlei Chen and Kaiming He.

@mastersthesis{jonhardsson2023,
    author       = {Jónhardsson, Magnus and Jørgensen, Mads and Larsen, Andreas},
    school       = {Aalborg University},
    title        = {Combining Algorithm Unrolling with Self-Supervised Learning for Compressed Sensing Image Super-Resolution},
    year         = {2023}
}

ssl_ista's People

Contributors

larsenandreas avatar madsarnlov avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.