GithubHelp home page GithubHelp logo

Comments (6)

d-li14 avatar d-li14 commented on May 28, 2024

Could you please tell me how the split of 'train', 'val', 'test' is done in advance in camvid_loader.py? As I can see, the original dataset take them as a whole 701_StillsRaw_full folder.

from pytorch-semseg.

andyhahaha avatar andyhahaha commented on May 28, 2024

I follow the split from this repo.
https://github.com/alexgkendall/SegNet-Tutorial
This is the repo from segnet author alex kendall.

from pytorch-semseg.

d-li14 avatar d-li14 commented on May 28, 2024

@andyhahaha Thanks a lot for reminding me, and I got the split from SegNet repo. But there exists some conflicts with the CamVid official site as far as i know:

  • it claims 32 classes and here we can only see 11
  • the label-color mapping is also not so matching with the label_colous list in the camvid_loader.py for lack of Roadmarking and Pavement

from pytorch-semseg.

d-li14 avatar d-li14 commented on May 28, 2024

@andyhahaha Furthermore, as for your original question, I think shrinking n_class to 11 naively won't work, because if so, the network will output 11 classes while the ground truth still contains the 12nd class, this will lead to an unexpected error in cross entropy. And in my opinion you'd better set an ignore_index to exclude the unlabeled "void" class, which can be refered to in the loader of CityScapes dataset as well.

from pytorch-semseg.

guanfuchen avatar guanfuchen commented on May 28, 2024

same problem, and I wonder whether the color map is not same with the origin paper. I try to test like blew:

label_colours = np.array([Sky, Building, Pole, Road, Pavement, Tree, 
                              SignSymbol, Road_marking, Car, 
                              Pedestrian, Fence, Unlabelled])

from pytorch-semseg.

komms avatar komms commented on May 28, 2024

@andyhahaha @d-li14 did you implement class balancing in the CamVid? How did you deal with unlabelled class?

from pytorch-semseg.

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.