Skip to content

get_flops函数 #92

@zswzswzsw233

Description

@zswzswzsw233

在get_flops脚本的construct_input函数中,构建输入数据时,对于时序输入的模型,是不是修改一下N=6?例如改成12
def construct_input(input_shape):
rot = torch.eye(4).float().cuda().view(1, 1, 4, 4).expand(1,6,4,4)

intrins = torch.eye(3).float().cuda().view(1,1, 3, 3).expand(1,6,3,3)
input = dict(img_inputs=[
    torch.ones(()).new_empty((1, 6, *input_shape)).cuda(), rot,
    rot, intrins, intrins,
    torch.ones((1, 6, 3)).cuda(),
    torch.eye(3).float().cuda().view(1, 3, 3)
])
return input

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