Comments (7)
Yes, both are binary. The optimal threshold is around 0.8.
from osvos-pytorch.
But when I set the threshold of 0.8, the iou is 0,I don't know why .My code is as follows:
from osvos-pytorch.
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.
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.
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.
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.
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)
- Code HOT 1
- class_balanced_cross_entropy_loss HOT 1
- Confused by " inputs.requires_grad_()" HOT 3
- online training HOT 1
- Implement three measures HOT 3
- Why total iterations are different to them in the paper? HOT 1
- How to add Mask Input? HOT 1
- Can you deliver a pretrain .pth model file of the final model HOT 1
- loss islarge HOT 3
- i can't find where you use finetuning on first frame in your code-pytorch HOT 5
- can you help me, how to use this code on Davis 2017 HOT 2
- train_online RuntimeError HOT 1
- The code of contour snap HOT 1
- Optimizer learning rates HOT 1
- Question about evaluation result HOT 1
- an error occurred when running train_parent.py HOT 6
- How to Evaluate the model? HOT 1
- Can it be used in images? HOT 1
- Emergency!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osvos-pytorch.