Skip to content

niuchuangnn/IMSVD

Repository files navigation

Information-Maximized Soft Variable Discretization for Self-Supervised Image Representation Learning

This is a Pytorch implementation of paper.

Installation

Assuming Anaconda with python 3.8, a step-by-step example for installing this project is as follows:

conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=10.2 -c pytorch
conda install matplotlib

Pretrain on ImageNet

sbatch job_imsvd.sh  # need to adjust according to your computing platform

Linear Evaluation on ImageNet

python linear_eval.py

Visualization

Our pretrained model can be downloaded here

python visualize_matrix.py  # visualize the joint probability matrix
python visualize_samples.py  # visualize samples assigned to specific feature units

License

This project is under the CC-BY-NC 4.0 license. See LICENSE for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published