Skip to content

Problem about prediction score when testing an image #30

@lyt0511

Description

@lyt0511

When I used the pre-trained module to test an image, I wrote codes as below

predictions = model:forward(img:cuda())
print(predictions:exp())

and then I got
[torch.CudaTensor of size 4x1000]
,which means the vector about the final prediction score is 4*1000.
However we know the last layer is
nn.View(1000)
My test result have got three extra dimension, WHY??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions