Giter Club home page Giter Club logo

Comments (10)

LikeLy-Journey avatar LikeLy-Journey commented on May 23, 2024

hi ,it is a good job though only 2 stars , please continue to maintain the job
and give the custom dataload and config. haha ,thansks

I will try to be better.
About custom data, you can convert you data format into cityscape format. One picture correspond to a ground truth picture. And then use cityscape dataloader.

from segmentron.

zhangyunming avatar zhangyunming commented on May 23, 2024
hi, as you said ,i put my own data to cityscapes dir , but in the dataloder/cityscapes.py , my class is 2,labels are 0 and 1, how to change below:

thanks!

raise RuntimeError("Found 0 images in subfolders of:" + root + "\n")
self.valid_classes = [7, 8, 11, 12, 13, 17, 19, 20, 21, 22,
23, 24, 25, 26, 27, 28, 31, 32, 33]
self._key = np.array([-1, -1, -1, -1, -1, -1,
-1, -1, 0, 1, -1, -1,
2, 3, 4, -1, -1, -1,
5, -1, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15,
-1, -1, 16, 17, 18])

from segmentron.

LikeLy-Journey avatar LikeLy-Journey commented on May 23, 2024

sorry, it is a little complicated.
you should modify img_folder and mask_folder here 。and then change here to your folder to make sure you can find images.
finally, change self.valid_classes=[0,1], self._key = [0,1],

from segmentron.

zhangyunming avatar zhangyunming commented on May 23, 2024

thanks for reply
i changed what you said and can find the images data. but i think self._key = [0,1] is not right , you can see in the cityscapes the self._key nums is not 19.

from segmentron.

LikeLy-Journey avatar LikeLy-Journey commented on May 23, 2024

thanks for reply
i changed what you said and can find the images data. but i think self._key = [0,1] is not right , you can see in the cityscapes the self._key nums is not 19.

valid key number is 19, not valid key set as -1. your key is all valid

from segmentron.

lichen14 avatar lichen14 commented on May 23, 2024

@LikeLy-Journey @zhangyunming
Hi, can your explain more details on how to train(&eval) on custom dataset? thanks.

from segmentron.

andrew-begain avatar andrew-begain commented on May 23, 2024

thanks for reply
i changed what you said and can find the images data. but i think self._key = [0,1] is not right , you can see in the cityscapes the self._key nums is not 19.

@zhangyunming @lichen14 您好,麻烦问一下您在自己的数据集上训练模型成功了吗?我想根据自己的数据集训练deeplabv3+,dataloader使用的是pascal voc的,我的数据集不是21类,颜色也不是跟voc是一样的,麻烦问一下,我应该修改什么来适应我这种情况?期待大神回复,谢谢

from segmentron.

S534435877 avatar S534435877 commented on May 23, 2024

thanks for reply
i changed what you said and can find the images data. but i think self._key = [0,1] is not right , you can see in the cityscapes the self._key nums is not 19.

@zhangyunming @lichen14 您好,麻烦问一下您在自己的数据集上训练模型成功了吗?我想根据自己的数据集训练deeplabv3+,dataloader使用的是pascal voc的,我的数据集不是21类,颜色也不是跟voc是一样的,麻烦问一下,我应该修改什么来适应我这种情况?期待大神回复,谢谢

我将自己的数据集制作成cityscape格式,是可以训练的,https://blog.csdn.net/s534435877/article/details/106937561
self.valid_classes=[0,1], self._key = [-1,0,1]
未标注的为0,标注了一类为1.

from segmentron.

dreamlychina avatar dreamlychina commented on May 23, 2024

thanks for reply
i changed what you said and can find the images data. but i think self._key = [0,1] is not right , you can see in the cityscapes the self._key nums is not 19.

@zhangyunming @lichen14 您好,麻烦问一下您在自己的数据集上训练模型成功了吗?我想根据自己的数据集训练deeplabv3+,dataloader使用的是pascal voc的,我的数据集不是21类,颜色也不是跟voc是一样的,麻烦问一下,我应该修改什么来适应我这种情况?期待大神回复,谢谢

我将自己的数据集制作成cityscape格式,是可以训练的,https://blog.csdn.net/s534435877/article/details/106937561
self.valid_classes=[0,1], self._key = [-1,0,1]
未标注的为0,标注了一类为1.

我看了你的博客,脚本的最后要进行crop,cityscapes数据集必须得resize到固定的尺寸???

from segmentron.

dreamlychina avatar dreamlychina commented on May 23, 2024

self.valid_classes=[0,1], self._key = [-1,0,1]

如果我的类别数4,self.valid_classes=[0,1], self._key = [-1,0,1]怎么填写??self.valid_classes=[0,1,2,3,4,], self._key = [-1,0,1,2,3,4]对吗?大佬

from segmentron.

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.