Git Product home page Git Product logo

mfm's Introduction

Masked Frequency Modeling for Self-Supervised Visual Pre-Training

Introduction

This repository contains the official PyTorch implementation of the following paper:

Masked Frequency Modeling for Self-Supervised Visual Pre-Training,
Jiahao Xie, Wei Li, Xiaohang Zhan, Ziwei Liu, Yew Soon Ong, Chen Change Loy
In: International Conference on Learning Representations (ICLR), 2023
[arXiv][Project Page][Bibtex]

highlights

Updates

  • [04/2023] Code and models of SR, Deblur, Denoise and MFM are released.

Models

ViT

ImageNet-1K Pre-trained and Fine-tuned Models

Method Backbone Pre-train epochs Fine-tune epochs Top-1 acc (%) Pre-trained model Fine-tuned model
SR ViT-B/16 300 100 82.4 config | model config | model
Deblur ViT-B/16 300 100 81.7 config | model config | model
Denoise ViT-B/16 300 100 82.7 config | model config | model
MFM ViT-B/16 300 100 83.1 config | model config | model

CNN

ImageNet-1K Pre-trained and Fine-tuned Models

Method Backbone Pre-train epochs Fine-tune epochs Top-1 acc (%) Pre-trained model Fine-tuned model
SR ResNet-50 300 100 77.9 config | model config | model
Deblur ResNet-50 300 100 78.0 config | model config | model
Denoise ResNet-50 300 100 77.5 config | model config | model
MFM ResNet-50 300 100 78.5 config | model config | model
MFM ResNet-50 300 300 80.1 config | model config | model

Installation

Please refer to INSTALL.md for installation and dataset preparation.

Pre-training

Please refer to PRETRAIN.md for the pre-training instruction.

Fine-tuning

Please refer to FINETUNE.md for the fine-tuning instruction.

Citation

If you find our work useful for your research, please consider giving a star โญ and citation ๐Ÿบ:

@inproceedings{xie2023masked,
  title={Masked Frequency Modeling for Self-Supervised Visual Pre-Training},
  author={Xie, Jiahao and Li, Wei and Zhan, Xiaohang and Liu, Ziwei and Ong, Yew Soon and Loy, Chen Change},
  booktitle={ICLR},
  year={2023}
}

Acknowledgement

This code is built using the timm library, the BEiT repository and the SimMIM repository.

mfm's People

Contributors

jiahao000 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.