Giter VIP home page Giter VIP logo

Comments (10)

caoshuai888 avatar caoshuai888 commented on July 28, 2024

from pycil.

G-U-N avatar G-U-N commented on July 28, 2024

It seems that you failed at the base training stage, did you wrongly modify the code for base training?

from pycil.

muyuuuu avatar muyuuuu commented on July 28, 2024

It seems that you failed at the base training stage, did you wrongly modify the code for base training?

yes, In line 104: https://github.com/G-U-N/PyCIL/blob/master/models/fetril.py#L104

I removed this line's comment, otherwise an error will be reported

from pycil.

G-U-N avatar G-U-N commented on July 28, 2024

your training log?

from pycil.

muyuuuu avatar muyuuuu commented on July 28, 2024

your training log?

sorry, it lost. please wait 10 minutes

from pycil.

muyuuuu avatar muyuuuu commented on July 28, 2024

sorry

final result:

2022-12-19 13:51:09,278 [trainer.py] => CNN top1 curve: [80.42, 71.2, 66.36, 62.06, 59.57, 56.16]
2022-12-19 13:51:09,278 [trainer.py] => CNN top5 curve: [96.72, 91.63, 89.34, 87.46, 85.46, 83.33]

I had set all BN layers : track_running_stats=False, so acc is bad. set track_running_stats=True will got good performance.

so, why does this happen, in order to compare my algorithm fairly, I should set track_running_stats=False for all BN Layers.

from pycil.

G-U-N avatar G-U-N commented on July 28, 2024

Glad to see you have reproduced the ideal results in our framework.

For your question:

Setting track_runing_stats to False will cause the running_mean and running_var being frozen, which typically makes the optimization in CNNs much harder especially when training from scratch. You'd better learn more about how BN works in neural networks.

from pycil.

muyuuuu avatar muyuuuu commented on July 28, 2024

wait.....

look this repo(task increment learning): https://github.com/sahagobinda/GPM/blob/main/main_cifar100.py

all of BN layers are set track_runing_stats to false, but got good performance.......

maybe this is another question?

from pycil.

G-U-N avatar G-U-N commented on July 28, 2024

I have no responsibility to answer questions outside our framework, thanks.

from pycil.

muyuuuu avatar muyuuuu commented on July 28, 2024

I'm sorry I was negligent

from pycil.

Related Issues (20)

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.