Skip to content

YaoYao1995/Cross-Labeling-Supervision-for-Semi-Supervised-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLS: Cross Labeling Supervision for Semi-Supervised Learning

This is a PyTorch implementation of CLS.

Usage

Train

Train the model by 4,000 labeled data of CIFAR-10 dataset:

python train.py --dataset cifar10 --num-labeled 4000 --arch wideresnet --batch-size 64 --lr 0.03 --seed 5 --out results/cifar10@4000.5

Train the model by 10,000 labeled data of CIFAR-100 dataset by using DistributedDataParallel:

python -m torch.distributed.launch --nproc_per_node 4 ./train.py --dataset cifar100 --num-labeled 10000 --arch wideresnet --batch-size 16 --lr 0.03 --wdecay 0.001 --seed 5 --out results/cifar100@10000.5

Monitoring the training progress:

tensorboard --logdir=<your out_dir>

Requirements

  • python 3.6+
  • torch 1.4
  • torchvision 0.5
  • tensorboard
  • numpy
  • tqdm
  • apex (optional)

About

A PyTorch implementation of CLS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages