Code Monkey home page Code Monkey logo

Comments (5)

thangvubk avatar thangvubk commented on May 25, 2024

Hi. It is because the semantic and offset branches are not learned yet, leading to empty proposals. To train from scratch, you should train the semantic and offset branch first, then train the backbone. There are two ways to do that.

1) Set prepare_epochs in the config file to a value greater than 0. Let's assume num_epochs=500, prepare_epochs=100, then the semantic branch will be trained 100 epochs then the whole network will be trained in 400 epochs. (Noted that you also need to empty pretrained_module and fixed_module in the config file.

2) Set semantic_only=True then train the network. Then validate the network with best semantic checkpoint. Then load the model from best semantic checkpoint and fix the backbone before training the ensuing branches.

from softgroup.

cshizhe avatar cshizhe commented on May 25, 2024

Thank you. I tried the first approach. The best performance I got on scannetv2 is mAP/mAP50/mAP25 = 0.435/0.642/0.772.
Could you reproduce the results when training from scratch on scannetv2?
BTW, I used spconv 2.1.

from softgroup.

thangvubk avatar thangvubk commented on May 25, 2024

I will try to reproduce the results from scratch when available. I think the second approach would be better and more stable. If you are available could you try it and let us know.

from softgroup.

jayes97 avatar jayes97 commented on May 25, 2024

Hi @thangvubk . I have started a training from scratch on my custom dataset with method 2. Now I want to visualize in between result on backbone ntwrk (that I'm training --point-wise prediction network (backbone)). Any way to get results?

from softgroup.

RongkunYang avatar RongkunYang commented on May 25, 2024

Hi @thangvubk . I have tried the second way, if I want to train the top-down refinement network based on the pretrian model, should I set the optimizer from the scratch. And there exists an error when load optimizer params :

raise ValueError("loaded state dict contains a parameter group "
ValueError: loaded state dict contains a parameter group that doesn't match the size of optimizer's group

from softgroup.

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.