Coder Social home page Coder Social logo

Comments (9)

hkchengrex avatar hkchengrex commented on August 22, 2024

Only one refinement module is trained. It is then used in the global/local step. They are not trained separately.

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

Thanks a lot, I get it. If I train the network on very high resolution images, could you please tell me what do I need to do to modified the onlinetransformdataset? Do I still need to use random crop 224x224?

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

I haven't tried that but I suspect that you would need something more complicated.
At least you would need to use RandomResizedCrop instead of RandomCrop to get global context sometimes. That might lead to an overwhelming amount of useless crops (all foreground/background) and they should be discarded.
Moreover, when you do have high-res training data, one suggestion is to actually train the two steps separately -- one using downsampled large crops for the global step, and the other using small crops for the local step. This is not implemented in the current repo but might worth a try.

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

I see. I notice that the test dataset named "BIG_PSPNet_SS" you provided is large enough. Could I know how did you train the two steps on this dataset?

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

We did not train the model on this dataset. It is too small and is for testing purposes only.

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

So, if I want to train on this dataset. I need to firstly generate the input data for global step. And use the output of global step to continuely generate input data for local step. Is that right?

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

That's one way.
Another way is to generate the inputs for the global/local steps separately and independently by perturbing the ground-truth.

from cascadepsp.

GOZGOXGOYGO avatar GOZGOXGOYGO commented on August 22, 2024

May I ask whether using the groundtruth-based perturbation results as "seg" or using the network-based prediction results as "seg" is better for training the two step? Have you compared these two situations?

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

For our case (training two steps as a single module), it is better to use perturbation because we can generate much more training pairs with variations. I would suspect that it will also be better to use ground-truth perturbation even when you train them separately.

from cascadepsp.

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.