Skip to content
pytorch implement of Label Smoothing
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
checkpoints
data
feature
logs
png
.gitignore
README.md
generate_feature.py
log_plot.py
lsr.py
nn.py
progressbar.py
run.py
tools.py
trainingmonitor.py
tsne_plot.py

README.md

Label Smoothing Pytorch

This repository contains a PyTorch implementation of the Label Smoothing.

Dependencies

  • PyTorch
  • torchvision
  • matplotlib
  • scikit-learn

Example

To produce th result, we use CIFAR-10 dataset for ResNet18.

# no label smoothing
python run.py

# use label smoothing
python run.py --do_lsr

# extract feature
python generate_feature.py

python generate_feature.py --do_lsr

#----------- plot tsne
python tsne_plot.py

python tsne_plot.py --do_lsr

Results

Training result

TSNE Visualisation

You can’t perform that action at this time.