Core-tuning icon indicating copy to clipboard operation
Core-tuning copied to clipboard

Visualizaiton of the learned features

Open BIGBALLON opened this issue 2 years ago • 3 comments

Hi, thanks for your great work.

I just have a question about the right way to get the visualization results mentioned in the paper:

image

BIGBALLON avatar Mar 15 '22 09:03 BIGBALLON

To obtain this visualization, you need an additional 3-dimensional MLP projection between features and classification predictions. For example, on CIFAR10: (1) You need to first train the following network architecture: Feature extractor (512 or 2048 dimensional features) -> 3-dimensional MLP projection (3 dimensional features) -> 10-dimensional classifier (10 dimensional logits). Here, the supervised contrastive loss is enforced on the 3-dimensional feature space. (2) After training, you can save the 3-dimensional features of all images for visualization. (3) Based on the saved features, use your tools (MatLab in our paper) to visualize it.

Vanint avatar Mar 18 '22 08:03 Vanint

Hi, thanks for the answer. Do you also have a ready-to-run script for this experiment and visualization?

BehzadBozorgtabar avatar Oct 11 '22 10:10 BehzadBozorgtabar

Hi, thanks for the answer. Do you also have a ready-to-run script for this experiment and visualization?

Hi, thanks for your interest. You may refer to: https://github.com/SCUT-AILab/CPGA/tree/main/visualization.

Vanint avatar Oct 12 '22 04:10 Vanint