Coder Social home page Coder Social logo

Comments (9)

zaiweizhang avatar zaiweizhang commented on June 27, 2024 2

@baraujo98 I do not think that it will affect the fine-tuning with OpenPCDet. It's better to check their codebase.

from depthcontrast.

zaiweizhang avatar zaiweizhang commented on June 27, 2024 1

Actually, you also need to change the setting to spawn. We have changed it in the main.py. Please try again! Sorry for the trouble.

from depthcontrast.

zaiweizhang avatar zaiweizhang commented on June 27, 2024

Hi Pan,

Thanks for pointing that out! That bug doesn’t occur if we use the spawn start method like the following:

from torch.multiprocessing import Pool, Process, set_start_method
try:
     set_start_method('spawn')
except RuntimeError:
    pass

For all experiments conducted in the paper, we use the spawn setting. We will fix the bug in the released code soon.

Thanks,
Zaiwei

from depthcontrast.

BestSonny avatar BestSonny commented on June 27, 2024

@zaiweizhang Great. Looking forward to your updated code and results. Thanks

from depthcontrast.

baraujo98 avatar baraujo98 commented on June 27, 2024

So calling main with --multiprocessing-distributed solves the problem in this case, correct?

from depthcontrast.

baraujo98 avatar baraujo98 commented on June 27, 2024

Ok thanks for the information. Does this bug occur across all pytorch frameworks? For example, does this happen when finetuning with OpenPCDet?

from depthcontrast.

BestSonny avatar BestSonny commented on June 27, 2024

@baraujo98 As mentioned, this is a common bug that impacts a lot of PyTorch frameworks. A blog has discussed this as well here.

"The bug is easy to make. In some cases, it has minimal effect on final performance. In others, the identical augmentations can cause severe degradations."

from depthcontrast.

baraujo98 avatar baraujo98 commented on June 27, 2024

Ok, it looks to me like OpenPCDet does not set a fixed seed by default, hinted by the fact that a --fix_random_seed argument exists, and it is False by default. Is that enough to be safe or should I make sure the seed is being reset after each epoch? Thanks for the heads up @BestSonny and for the fast correction @zaiweizhang

from depthcontrast.

zaiweizhang avatar zaiweizhang commented on June 27, 2024

Feel free to reopen. Closing it for now.

from depthcontrast.

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.