Giter Site home page Giter Site logo

about the crf model about pacnet HOT 3 CLOSED

huixiancheng avatar huixiancheng commented on July 16, 2024
about the crf model

from pacnet.

Comments (3)

huixiancheng avatar huixiancheng commented on July 16, 2024

crf = PacCRF(21, num_steps=5, unary_weight=1.0)
crf.add_pairwise_kernel(kernel_size=5, dilation=1, blur=1, compat_type='4d', pairwise_weight=1.0)
edge_features = [paccrf.create_YXRGB(im, yx_scale=100.0, rgb_scale=30.0)]
output = crf(unary, edge_features)

dear ph.D, you use those code build a crf and then infer them.
however,i don't know the part of the build edge from two pairwise node since i'm noob could you tell me the part of the code? is it just like desecrf are all fullconnet?
or could i build a edge from two appointed points?

sry for in chinese:
尊敬的苏杭(?)博士:想问一下您的crf代码的边连接是参照densecrf进行全连接的吗?我能对指定两条点构建一条单独的edge吗?

from pacnet.

suhangpro avatar suhangpro commented on July 16, 2024

The connection pattern is defined by the add_pairwise_kernel line. For example, kernel_size=5 means that each pixel is connected with all the other 5 * 5 -1 pixels within its neighborhood.

from pacnet.

huixiancheng avatar huixiancheng commented on July 16, 2024

thx,i will take a try

from pacnet.

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.