Coder Social home page Coder Social logo

Comments (9)

hkchengrex avatar hkchengrex commented on August 22, 2024

You don't need to download those datasets if you are going to train the model on your own data.
You can look at dataset/online_dataset.py to see how our data is prepared. If your own data has a different resolution other than ours (~300px * 500px), you might want to adjust the crop size.

Why do you want to train it on your own data though?

from cascadepsp.

richenyunqi avatar richenyunqi commented on August 22, 2024

Thanks for your reply. I think you can provide the details of how to train on personal data set in training.md.
For your question, I have tested my own data on the model you provided. The accuracy of the boundary has been greatly improved, however, introducing other noise. There are mainly two problems. My data are human photos taken in a closed environment with lots of cameras. What I want to do is to classify the foreground and background of the human body. After I used your model, the black cameras appeared in the result, which did not appear in the initial segmentation result. On the other hand, part of the foreground of the human body was divided into the background. I don't know why, do you know the reason?
Anyway, your work is very helpful to me, thank you a lot!

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

Maybe you can show some examples?
Anyway, if the images are dark/there are specific objects to remove, training on your own data is probably going to help.
We aren't really expecting others to train on their own data -- even if they do, there are engineering involved specific to the data that they use and a general tutorial would be difficult.

from cascadepsp.

richenyunqi avatar richenyunqi commented on August 22, 2024

I consider whether the problem is the label. I have a question. I want to classify the foreground and background, so what should the value of the label be? 0 and 1 or 0 and 255? If I use the 0 and 255, two problems talked about above appeared. If I use the 0 and 1, the result is a black image.

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

It should be 0 and 255.

from cascadepsp.

richenyunqi avatar richenyunqi commented on August 22, 2024

So can the value of $L$ cause this result? I set the value of $L$ 600. Can you provide your email? I want to send you some of my data if you have time to help me to solve this problem. Thanks for your work and help again.

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

It is not likely to be caused by L. If it's ok you can just post them here -- I might not be able to solve it since ultimately there might just be imperfections in the model/initial segments are too bad.

from cascadepsp.

hkchengrex avatar hkchengrex commented on August 22, 2024

Ah... I see. Thank you for the examples!
I would say that it is caused by the inherent limitation of cropping in our method. We tried our best to mitigate it but it seems that the problem still pops up sometimes.

Suggestions:

  1. Increasing L might help but there is no guarantee
  2. Training on your own data would definitely help
  3. Train a different, more conservative model for the local step. This requires changing the core code. I might try this in my free time later.

from cascadepsp.

richenyunqi avatar richenyunqi commented on August 22, 2024

Thanks for your reply. I will try your method. Since the data needs to be kept confidential, I will delete the example. Thanks for your work and suggestions again.

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.