shijxcs / csa Goto Github PK
View Code? Open in Web Editor NEWSource code for the paper "How Re-sampling Helps for Long-Tail Learning?" (NeurIPS 2023)
Source code for the paper "How Re-sampling Helps for Long-Tail Learning?" (NeurIPS 2023)
作者您好,我对于您的这项工作非常感兴趣,在阅读了文章以后尝试对您的代码进行了复现,在这其中遇到了一些问题想向您请教。在CSA+mixup 的实验中,我按照您的说明在 config 里的文件将 mixup 改为了 True,但是始终没能达到您文章里的效果,可以麻烦您指导一下 CSA + mixup 的方法的参数需要怎么设置吗,感谢!
Hello, thank you for your great work.
What's meaning of the term ‘Balance Ratio’ in the paper's Figure 1.
Is
Running python train.py --cfg ./config/cifar10/cifar10_imb01.yaml displays AttributeError: 'ResNet_fe' object has no attribute 'module'
on python==3.9.18. And the traceback is :
Traceback (most recent call last):
File "xxx/CSA/CSA/train.py", line 798, in <module>
main()
File "xxx/CSA/CSA/train.py", line 98, in main
main_worker(config.gpu, ngpus_per_node, config, logger, model_dir)
File "xxx/CSA/CSA/train.py", line 338, in main_worker
train(train_loader, balance_loader, model, classifier1, classifier2, criterion, optimizer,
File "xxx/CSA/CSA/train.py", line 442, in train
mask, logit = get_background_mask(model, block, classifier1, input1, target1, config)
File "xxx/CSA/CSA/train.py", line 571, in get_background_mask
target_layer = model.module.last_layer
File "/opt/homebrew/anaconda3/envs/py39-troch/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1207, in __getattr__
raise AttributeError("'{}' object has no attribute '{}'".format(
AttributeError: 'ResNet_fe' object has no attribute 'module'
Could you show the requirements.txt
? Thank you so much.
Executing python train.py --cfg . /config/cifar10/cifar10_imb001.yaml gives an error showing: TypeError: __init__() got an unexpected keyword argument 'randaug'
, checking the yaml file there is no such configuration. Please tell me how to solve it, thanks :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.