Skip to content

CA-TT-AC/key-patch-proposer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Key Patch Proposer(KPP) algorithm

This repo provides source code for ICLR notable tiny paper "Key Patch Proposer: Key Patches Contain Rich Information".

This repo is a modification on the MAE repo.

Environment

You should follow the instruction of MAE to prepare your environment. https://github.com/facebookresearch/mae

Dateset

To prepare images to be applied to KPP algorithm, you should collect them into a folder or you can rewrite dataset class in custom_datasets.py.

Run

Run the following:

python KPP_main.py --data_path /path/to/your/images --ckpt /your/pretrained/ckpt.pth --output_dir /your/ourpur/dir --mask_ratio 0.75

You can also use --visulize True, to visulize what is generated by KPP algorithm in your images.

About

Official realization of "Key Patch Proposer: Key Patches Contain Rich Information".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages