GithubHelp home page GithubHelp logo

Comments (5)

aquariusjay avatar aquariusjay commented on June 17, 2024

Hi mi2celis,

Thanks for the question.

To train the model on Cityscaspes semantic segmentation, you do not need to change anything except use the resnet50_os32_semseg.textproto.

The dataset name in the textproto should still be "cityscapes_panoptic" (as shown here) and the dataset is converted in the same way as the tutorial.

The code currently only reads panoptic dataset format, as shown in this line.

Hope that helps.

Cheers,

from deeplab2.

mi2celis avatar mi2celis commented on June 17, 2024

Got it! Thank you for the prompt reply.

So, if my dataset only contains semantic segmentation annotations, can I still use DeepLab2 to train as explained in the section to convert your own dataset ?

from deeplab2.

aquariusjay avatar aquariusjay commented on June 17, 2024

Hi mi2celis,

Yes, that is correct. Basically, you consider your dataset as the one that contains only stuff classes.
I think we have a typo in the doc about setting panoptic_label_divisor=None where you should actually still set a panoptic_label_divisor (e.g., 256 or even smaller) since the code only reads panoptic dataset format at the moment (e.g., here).
We will update the doc soon. Thanks for bringing up the issue.

Additionally, you may first want to make sure if you could successfully train Cityscapes semantic segmentation.

Cheers,

from deeplab2.

aquariusjay avatar aquariusjay commented on June 17, 2024

Hi mi2celis,

Let me add a bit more details here which may be helpful when you will be converting your own dataset.

Since the code only reads panoptic data at the moment, you need to set panoptic_label_divisor = k, where k is any integer, instance_id = 0, and class_has_instances_list = [] (i.e., we treat the dataset as the one that contains only stuff classes), when you are (1) converting the dataset to TFRecord, and (2) adding dataset information in dataset.py.

We will update the doc to include this information soon.

Please feel free to report some more issues afterwards.

Cheers,

from deeplab2.

aquariusjay avatar aquariusjay commented on June 17, 2024

Closing the issue as there is no active discussion for a while.
Please feel free to reopen or create a new one if you still have any questions.

from deeplab2.

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.