Giter Site home page Giter Site logo

Segmentation labels about mcd_da HOT 2 OPEN

mil-tokyo avatar mil-tokyo commented on July 21, 2024 1
Segmentation labels

from mcd_da.

Comments (2)

kukuruza avatar kukuruza commented on July 21, 2024 2

I wrote two gists to convert GTAV and Cityscrapes labels to the format that MCA_DA expects. The links I used for the mappings are referenced in the gists.

labels_gtav_to_20classes.py
labels_cityscrapes_to_20classes.py

from mcd_da.

LittleWat avatar LittleWat commented on July 21, 2024 2

Thank you for sharing the code!

It is one way to prepare the dataset whose class labels are converted before training models as you did.

However, there is another way to convert class labels if you just want to evaluate.
The way is to prepare json files such as this (https://github.com/mil-tokyo/MCD_DA/blob/master/segmentation/dataset/synthia2cityscapes_info.json)
and then to change this line (

mapping = np.array(info['label2train'], dtype=np.int) # Not use

) This way does not consume your data capacity because you can use the original dataset (do not have to prepare the dataset whose class ids are converted).

from mcd_da.

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.