Skip to content

[TKDE] DIOR: Learning to Hash With Label Noise Via Dual Partition and Contrastive LearningPaper under review

Notifications You must be signed in to change notification settings

WillDreamer/DIOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DIOR: Learning to Hash With Label Noise Via Dual Partition and Contrastive Learning

REQUIREMENTS

  1. pytorch 1.4
  2. loguru
  3. scipy
  4. sklearn

DATASETS

[CIFAR-10] [FLICKR25K] [NUS-WIDE] [MS-COCO]

USAGE

DIOR_Pytorch

optional arguments:
  -h, --help            show this help message and exit
  -d DATASET, --dataset DATASET
                        Dataset name.
  -r ROOT, --root ROOT  Path of dataset
  -c CODE_LENGTH, --code-length CODE_LENGTH
                        Binary hash code length.(default: 12)
  -T MAX_ITER, --max-iter MAX_ITER
                        Number of iterations.(default: 50)
  -l LR, --lr LR        Learning rate.(default: 1e-3)
  -q NUM_QUERY, --num-query NUM_QUERY
                        Number of query data points.(default: 10000)
  -t NUM_TRAIN, --num-train NUM_TRAIN
                        Number of training data points.(default: 5000)
  -w NUM_WORKERS, --num-workers NUM_WORKERS
                        Number of loading data threads.(default: 16)
  -b BATCH_SIZE, --batch-size BATCH_SIZE
                        Batch size.(default: 24)
  -a ARCH, --arch ARCH  CNN architecture.(default: vgg16)
  -k TOPK, --topk TOPK  Calculate map of top k.(default: -1)
  -v, --verbose         Print log.
  --train               Training mode.
  --evaluate            Evaluate mode.
  -g GPU, --gpu GPU     Using gpu.(default: False)
  -e EVALUATE_INTERVAL, --evaluate-interval EVALUATE_INTERVAL
                        Interval of evaluation.(default: 500)
  --temperature         Hyper-parameter in SimCLR.(default:0.5)
  --noise               Whether to add noise
  --noiseType           Noise type.(default: pairflip)
  --noiseLevel          Noise Level.(default: 0.6)


EXPERIMENTS

How to train: python run.py --train

How to evalutate: python run.py --evaluate

Our model will be restored in the checkpoints.

About

[TKDE] DIOR: Learning to Hash With Label Noise Via Dual Partition and Contrastive LearningPaper under review

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages