Skip to content

error checked, in the function forward_clip_projector #104

@liuyun2025-netizen

Description

@liuyun2025-netizen
def forward_clip_projector(self, x): # for InternImage-H/G
    xs = self.forward_features_seq_out(x)
    x1, x2, x3, x4 = xs
    
    #x1 = x1.permute(0, 3, 1, 2) # NHWC -> NCHW
    #x2 = x2.permute(0, 3, 1, 2) # NHWC -> NCHW
    #x3 = x3.permute(0, 3, 1, 2) # NHWC -> NCHW
    #x4 = x4.permute(0, 3, 1, 2) # NHWC -> NCHW

No need to convert to channel first format, is NCHW

code from :\DCNv4\classification\models\flash_intern_image.py

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions