Giter Site home page Giter Site logo

Comments (9)

CoinCheung avatar CoinCheung commented on August 22, 2024

Your category does not in range of [0, 13], but in [0, 131] instead. You should convert the label values into [0, 13].

from bisenet.

yangaiping avatar yangaiping commented on August 22, 2024

您是什么意思呢,我的图像像素值区间是[0,132],但是我的像素颜色种类是13,那我的n_cats应该设为多少呢

from bisenet.

CoinCheung avatar CoinCheung commented on August 22, 2024

You should map the pixel value of your label file into range of [0, 12].

from bisenet.

yangaiping avatar yangaiping commented on August 22, 2024

代码里的这个输出[0,132]难道不是像素的最小值与最大值形成的区间吗
image
image

from bisenet.

CoinCheung avatar CoinCheung commented on August 22, 2024

You have 13 categories, but your category index are not continously ranging from 0 to 12, they are sparsely ranging from 0 to 132.

You should map your raw label values continuously into range [0, 12].

For example, in the picture above, we can see the mapping rule as:

0    -> 0
14  -> 1
19  -> 2
....

You should process your label files to by-pass those empty categories, or you have to set the number of categories into 132.

from bisenet.

CoinCheung avatar CoinCheung commented on August 22, 2024

They are expected to be singe channel image.

from bisenet.

yangaiping avatar yangaiping commented on August 22, 2024

我明白您的意思了,我的png格式的标签文件有问题,我应该下去修改,是需要把彩色标签图像改成单通道8位标签图像吗

from bisenet.

CoinCheung avatar CoinCheung commented on August 22, 2024

Yes, they are expected to be single channel with label values rather than pixel values.

from bisenet.

yangaiping avatar yangaiping commented on August 22, 2024

非常感谢您,我再下去试试。再次感谢

from bisenet.

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.