Skip to content

'tuple' object has no attribute 'size' #25

Open
@Gyiming

Description

@Gyiming

Hi,

Has anybody find this problem? I went into an error:

File "run_tracker.py", line 164, in run_mdnet
   feat_dim = pos_feats.size(-1)
AttributeError: 'tuple' object has no attribute 'size'

In the code ,the post_feats was defined in line 162:
pos_feats = (model, image, pos_examples), which is a tuple w/o size attribute.

Do you mean pos_feats[-1].size() ? Because pos_feats[-1] is a ndarray.

But in line 63, you called pos_feats.size(0) again. pos_feats(0)'s type is 'model.MDNet' which doesn't have a size attribute.

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