Code Monkey home page Code Monkey logo

csa's People

Contributors

shijxcs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

siryul shuchunxu

csa's Issues

AttributeError: 'ResNet_fe' object has no attribute 'module'

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.

关于 CSA + mixup 的参数设置

作者您好,我对于您的这项工作非常感兴趣,在阅读了文章以后尝试对您的代码进行了复现,在这其中遇到了一些问题想向您请教。在CSA+mixup 的实验中,我按照您的说明在 config 里的文件将 mixup 改为了 True,但是始终没能达到您文章里的效果,可以麻烦您指导一下 CSA + mixup 的方法的参数需要怎么设置吗,感谢!

The Question About 'Balance ratio'

Hello, thank you for your great work.

What's meaning of the term ‘Balance Ratio’ in the paper's Figure 1.

Is $N_{tail\ classes}/N_{tail\ classes}$?

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.