Code Monkey home page Code Monkey logo

lvos-evaluation's Introduction

LVOS Semi-supervised evaluation package

This package is used to evaluate semi-supervised long-term video multi-object segmentation models for the LVOS dataset.

This tool is also used to evaluate the submissions in the Codalab site for the Semi-supervised LVOS Challenge.

Installation

# Download the code
git clone https://github.com/LingyiHongfd/lvos-evaluation.git && cd lvos-evaluation
# Install it - Python 3.6 or higher required
python setup.py install

If you don't want to specify the LVOS path every time, you can modify the default value in the variable default_lvos_path in evaluation_method.py(the following examples assume that you have set it).

Note: default_lvos_path is the valid split path.

Otherwise, you can specify the path in every call by using the flag --lvos_path /path/to/LVOS when calling evaluation_method.py.

Once the evaluation has finished, two different CSV files will be generated inside the folder with the results:

  • global_results.csv contains the overall results.
  • per-sequence_results.csv contain the per sequence.

If a folder that contains the previous files is evaluated again, the results will be read from the CSV files instead of recomputing them.

Evaluate LVOS Semi-supervised

In order to evaluate your semi-supervised method in LVOS, execute the following command substituting results/semi-supervised/ddmemory by the folder path that contains your results:

python evaluation_method.py --task semi-supervised --results_path results/semi-supervised/ddmemory --mp_nums 1

The semi-supervised results have been generated using DDMemory.

For some reason, the result of DDMemory is unavailable temporarily. So we provide the result of AOT-T as an alternative. You can download the result here and unzip the file. After putting the unziped file under the folder results/semi-supervised/aott, please use the following command to evaluate AOT-T result.

python evaluation_method.py --task semi-supervised --results_path results/semi-supervised/aott --mp_nums 1

mp_nums is set as 1 by default. Because the score computing process in serial mode is time-consuming, you can set mp_nums larger than 1 (such as 2) to enable multiple processing and speed up the evaluation. But we suggest that mp_nums should be set to less than 8 on a regular server.

APIs

We released the tools and test scripts in this repository. Click on this link for more information.

Acknowledgement

The codes are modified from DAVIS 2017 Semi-supervised and Unsupervised evaluation package.

Citation

Please cite both papers in your publications if LVOS or this code helps your research.

@article{hong2022lvos,
    title={LVOS: A Benchmark for Long-term Video Object Segmentation},
    author={Hong, Lingyi and Chen, Wenchao and Liu, Zhongying and Zhang, Wei and Guo, Pinxue and Chen, Zhaoyu and Zhang, Wenqiang},
    journal={arXiv preprint arXiv:2211.10181},
    year={2022},
}

lvos-evaluation's People

Contributors

lingyihongfd avatar bowmanchow avatar

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.