Skip to content

Question about Generate Captions #8

@yongsongH

Description

@yongsongH

First of all, thank you for your great work

When I finish training and try to generate caption, there are something issue with the result.

AttributeError: 'Tensor' object has no attribute 'ndim'

I add the <PATH_TO_IMG> and <PATH_TO_MODEL_PARAMETERS> to the code.
parser.add_argument('--img-path', type=str, help='path to image',default="0077.png")
parser.add_argument('--model', type=str, default="model/model_vgg19_10.pth",help='path to model paramters')

Do you have any idea with this? More details I have emailed you by Gmail.

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