Skip to content

ValueError: need at least one array to concatenate #28

Open
@lilyabc

Description

@lilyabc

When evaluating

python eval.py --cfg ../experiments/001_MPII_ResNet_pretrained.yaml

It outputs

INFO:tensorflow:Restoring parameters from pretrained_models/mpii_baseline/model.ckpt-12000
  0%|                                               | 0/6988 [00:00<?, ?it/s]Exception KeyError: KeyError(<weakref at 0x7ff7ad282f70; to 'tqdm' at 0x7ff7ad2e1f10>,) in <bound method tqdm.__del__ of   0%|                                               | 0/6988 [00:00<?, ?it/s]> ignored
Traceback (most recent call last):
  File "eval.py", line 335, in <module>
    main()
  File "eval.py", line 267, in main
    all_labels = np.concatenate(all_labels)
ValueError: need at least one array to concatenate

Something is wrong with

all_labels = np.concatenate(all_labels)

and
all_logits = np.concatenate(all_feats['logits'])

Anyone knows this problem? Thanks.

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