Coder Social home page Coder Social logo

official measure code about osvos-pytorch HOT 7 CLOSED

kmaninis avatar kmaninis commented on August 16, 2024
official measure code

from osvos-pytorch.

Comments (7)

kmaninis avatar kmaninis commented on August 16, 2024

Yes, both are binary. The optimal threshold is around 0.8.

from osvos-pytorch.

InstantWindy avatar InstantWindy commented on August 16, 2024

But when I set the threshold of 0.8, the iou is 0,I don't know why .My code is as follows:
image

from osvos-pytorch.

scaelles avatar scaelles commented on August 16, 2024

Hello,
The code that you provide seems right to me. I would do a couple of things to double check that all the tensor have the appropriate values:

  • Check that probabilities and gts are correct: np.unique(probabilities.cpu().numpy()) should only be 0 and 1.
  • Visualize with matplotlib the probabilities tensor before thresholding.

from osvos-pytorch.

InstantWindy avatar InstantWindy commented on August 16, 2024

Yeah,Maybe it's because I trained on the Davis 2017 dataset, Davis 2017 dataset labels have multiple categories.If I want to train on the Davis 2017 dataset, how do I set the label values of multiple categories to 0 and 1? My idea is to set the pixel values of the target category to 1 and the background to 0.

from osvos-pytorch.

scaelles avatar scaelles commented on August 16, 2024

In the multiple object scenario, the evaluation gets a little bit more tricky so I would recommend you using the python package that we provide for DAVIS 2017. If there are multiple objects, each object pixel value should be the same as the one for that object in the first frame.

from osvos-pytorch.

InstantWindy avatar InstantWindy commented on August 16, 2024

I use the evaluation code provided by the official davis2017. But this evaluation code requires the input to be a binary map. So how do you convert multi-object labels into binary maps? Thank you!

from osvos-pytorch.

scaelles avatar scaelles commented on August 16, 2024

I think that the best is that you evaluate the whole sequence and not every frame using this.

In case that you want to evaluate per frame, you have to create yourself a loop evaluating one object at a time. Keep in mind that the DAVIS evaluation is done obtaining the mean of every object in the whole sequence and then doing the mean of all the objects. So don't do the mean of all the objects in each frame.

from osvos-pytorch.

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.