Giter Club home page Giter Club logo

multiexit-distillation's People

Contributors

mary-phuong avatar

Stargazers

 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

multiexit-distillation's Issues

Pre-trained models for imagenet

Hi Mary,

Thanks a ton for the excellent implementation. It has been really helpful in my own work. I was wondering if you could please share the pre-trained models for ImageNet (or the code). In case you need to email me my address is: [email protected]

Scaling questions in multi-exit loss configurations.

hello. l am a college student studying deep learning in Korea.

i read your paper impressed.

i was wondering while reading the paper. did you scale each loss (depending on network depth) when configuring a multi-exit loss?

for example, ( depth = exit1 < exit2 < exit3)

exit1 , exit2, exit3 = model(input)

loss1 = criterion(exit1, targets)
loss2 = criterion(exit2, targets)
loss3 = criterion(exit3, targets)

no scale

total_loss = loss1 + loss2 + loss3

scale

total_loss = 0.1loss1 + 0.2loss2 + 0.7*loss3

If you didn't scale, can you tell me why?

i wanted to solve it by myself, but i can't solve it.
i'm really sorry.

best regards

About global_scale parameter values

Hi Phuong,

Could you please explain what is global_scale parameter is and how did you choose the particular values i.e, 2.0 and 5 ? in global_scale = 2.0 * 5/cf_net['n_exits']

KLD loss question.

Hi. I am a student in Korea. I was impressed with your iccv2019 announcement.

if you don't mind , I have a one question. I wonder if you modify your KLD loss like this. It's a bit hard to understand the code, so I wonder if it's different from the existing KLD loss.

KD_loss = nn.KLDivLoss()(F.log_softmax(outputs/T, dim=1), F.softmax(teacher_outputs/T, dim=1)) * (alpha * T * T) + \ F.cross_entropy(outputs, labels) * (1. - alpha)

https://github.com/mary-phuong/multiexit/distillation/blob/faff910ebdcf37c530f5bc419f31d6f587ca1545/main.py#L721

want to know operating system version.

Hey Mary,
I am getting some run errors, it would be helpful if you could share the version of your operating system. I tried to run it on ubuntu 16.04 and 20.04. Thank you.

run problem

show error outof index :
line 41, in train
net = get_net()
line 21, in get_net
net = getattr(main, cf_net['call'])(**dict_drop(cf_net, 'call'))
line 928, in init
in_shape if i == 0 else 0, btneck_widths)

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.