Skip to content

I think this a bug. caption.py 140 #196

@tigerbrother222

Description

@tigerbrother222

incomplete_inds = [ind for ind, next_word in enumerate(next_word_inds) if next_word != word_map['']]
incomplete_inds always is [0,1,2,3,4] .
and then
complete_inds = list(set(range(len(next_word_inds))) - set(incomplete_inds))
complete_inds is empty
so complete_seqs is null.

my Model out is error

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