Skip to content

importZL/LFM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Learning_From_Mistakes

Learning From Mistakes: A Multi-level Optimization Framework (Official Pytorch implementation for applications on Neural Architecture Search and Data Reweighting).

Setups

The requiring environment is as bellow:

  • Linux
  • Python 3+
  • PyTorch
  • Torchvision

Or, you can use the following command to build the environment and get started:

conda env create -f environment.yml

Running application to NAS on benchmark datasets (CIFAR-10 and CIFAR-100).

Here is an example about running the architecture search stage of DARTS on CIFAR-10:

python train_search_lfm.py --is_cifar100 0 --gpu 0 --unrolled --save darts-cifar10

Here is an example about running the evaluation stage of architecture searched on CIFAR-10:

python train.py --gpu 0 --auxiliary --cutout --arch [searched architecture]

Running application to DR on benchmark datasets (CIFAR-10 and CIFAR-100).

Here is an example about running the experiment on class imbalance dataset with 100 imbalance factor

python dr-lfm-imbalance.py --dataset cifar100 --num_classes 100 --imb_factor 0.01

Checkpoints that related to the results showed in the paper

Checkpoints of the Application to NAS:

Checkpoints of the Application to DR (Class Imbalance):

Checkpoints of the Application to DR (Label Noisy):

License

This work is licensed under MIT license. See the LICENSE for details.

Acknowledgement

We appreciate the developers of Differentiable Architecture Search and Meta-Weight-Net, and we express our gratitude to these awesome projects.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors