Skip to content

How can I apply CRF with image? #3

@sangrockEG

Description

@sangrockEG

Hello.

I tried to apply your CRF-layer to my semantic segmentation model.
But I found that the layer does not get an image as its input.
forward(self, x, spatial_spacings=None, verbose=False)

x is an output of my model, which functions as a unary potential, right?
At first, I thought the spatial_spacings is somewhat related to the data term, but it seems not...
(Because it has a shape of (batch_size, len(spatial)).)

Any help will be really appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions