Giter VIP home page Giter VIP logo

protosemi's Introduction

ProtoSemi

This is the official repository of paper Rethinking Noisy Label Learning in Real-world Annotation Scenarios.

Setup

This implemetation is based on Python3. To run the code, you need the following dependencies:

  • torch==1.7.1

  • torchvision==0.8.2

  • tensorboard==2.11.2

  • numpy

  • scikit-learn

You can simply run

pip install -r requirements.txt

Repository structure

We select some important files for detailed description.

|-- code 
    |-- data_preprocess # read the CIFAR-N dataset
    |-- config.py # hyperparameters
    |-- main.py 
    |-- model.py
    |-- myssl.py # semi-superivised learning
    |-- myutils.py 
    |-- sample_splits_backup.py # old sample split
    |-- sample_splits # new sample split
|-- data
    |-- CIFAR-N

Run

  1. You can run like the script in the following:
cd code
CUDA_VISIBLE_DEVICES=0 python -u main.py --dataset cifar100 --noise_type noisy100 --lr 0.02 --epochs 500 --weight_decay 5e-4 --sample_split proto --warmups 20 --ssl mixmatch  --cos_up_bound 0.99 --cos_low_bound 0.90 --proto_epochs 1
  1. You can reproduce the experimental results of our method by running the script:
cd code
bash reproduce.sh

Attribution

Parts of this code are based on the following repositories:

protosemi's People

Contributors

recklessronan avatar

Stargazers

Thomas Friedel avatar  avatar

Watchers

rz wu avatar LinxiaGONG 巩琳霞 avatar

Forkers

nengwp

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.