MCPcopy Index your code
hub / github.com/1998v7/SNSCL

github.com/1998v7/SNSCL @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
278 symbols 545 edges 17 files 8 documented · 3%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

SNSCL

PyTorch Implementation of SNSCL (accepted to CVPR 2023).

1. Environment settings

Python 3.8, Pytorch 1.11, CUDA 11.1

2. Dataset

Before running the code, you should create a fold '/dataset/{}' and download datasets from following links.

   Stanford Dog: http://vision.stanford.edu/aditya86/ImageNetDogs/
   Stanford Car: https://www.kaggle.com/datasets/jessicali9530/stanford-cars-dataset
   Aircraft: https://www.robots.ox.ac.uk/~vgg/data/fgvc-aircraft/
   Cub-200-2011: https://data.caltech.edu/records/65de6-vp158

3. Training

python vanilla_w_SNSCL.py  --dataset {dog, car, aircraft, cub}
                           --loss {ce_loss, APL, Asym, GCE, Sym, label_smooth, confPenalty}
                           --batch_size 64
                           --lr 0.002
                           --noise_type sym
                           --noise_r 0.2
                           --gpu 0

Some training records can be found in Google drive.

Contact

If you have any problem about our code, feel free to contact 1998v7@gmail.com

Cite

If you find the code useful, please consider citing our paper:

@inproceedings{wei2023fine,
  title={Fine-grained classification with noisy labels},
  author={Wei, Qi and Feng, Lei and Sun, Haoliang and Wang, Ren and Guo, Chenhui and Yin, Yilong},
  booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  pages={11651--11660},
  year={2023}
}

Core symbols most depended-on inside this repo

_float_parameter
called by 9
dataloader/randaugment.py
run
called by 4
dataloader/select_helper.py
_int_parameter
called by 4
dataloader/randaugment.py
_make_layer
called by 4
models/resnet.py
pprint
called by 3
helpers.py
CutoutAbs
called by 3
dataloader/randaugment.py
set_env
called by 2
helpers.py
get_lossf
called by 2
helpers.py

Shape

Method 167
Class 71
Function 40

Languages

Python100%

Modules by API surface

Asym_loss.py81 symbols
APL_loss.py72 symbols
dataloader/randaugment.py36 symbols
models/resnet.py21 symbols
helpers.py15 symbols
src/contrastive_l.py11 symbols
dataloader/dogs_loader.py8 symbols
dataloader/cub_loader.py8 symbols
dataloader/aircraft_loader.py8 symbols
dataloader/car_loader.py6 symbols
models/backbone.py5 symbols
Vanilla_w_SNSCL.py4 symbols

For agents

$ claude mcp add SNSCL \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact