GithubHelp home page GithubHelp logo

bic's People

Contributors

sairin1202 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bic's Issues

Run the code on different datasets and configurations

Hello,
Thank you for your code, I find it interesting.
However, I noticed that you hardcoded it to be able to run on CIFAR with 5 states (20 classes per state). For this, you created 5 bias removal layers , one for each state. How can I run it on other configurations (50 states in total for example), with other datasets contain more than 100 classes?

Thank you.

2 (stage1) functions defined

Hello,
There are two (stage1()) functions defined in the Trainer class. Which one of them is correct? (the main difference is in the "retain_graph=True" during backpropagation).

Thank you

Bias correction layer is different from the original paper

In the original paper, bias correction layer consists of only two parameters "alpha" and "beta", which are only applied to the logits corresponding to the last trained group of classes. Here it seems like you have multiple such layers for each group of classes.

BIC/trainer.py

Lines 191 to 202 in 56a34c4

def bias_forward(self, input):
in1 = input[:, :20]
in2 = input[:, 20:40]
in3 = input[:, 40:60]
in4 = input[:, 60:80]
in5 = input[:, 80:100]
out1 = self.bias_layer1(in1)
out2 = self.bias_layer2(in2)
out3 = self.bias_layer3(in3)
out4 = self.bias_layer4(in4)
out5 = self.bias_layer5(in5)
return torch.cat([out1, out2, out3, out4, out5], dim = 1)

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.