Skip to content

Unable to calculate FID score - ValueError: need at least one array to stack #11

@ashok-arora

Description

@ashok-arora

I ran this:

export KITTI360_DATASET=/home/cse/Desktop/ashok/lidar_kitty360/KITTI-360/    

followed by:
python lidargen.py --fid --exp kitti_pretrained --config kitti.yml python lidargen.py --fid --exp kitti_pretrained --config kitti.yml

and got the following traceback:

Traceback (most recent call last):
  File "lidargen.py", line 230, in <module>
    main()
  File "lidargen.py", line 170, in main
    fid_score = lidargen_fid.get_fid(folder1, folder2)
  File "/home/cse/Desktop/ashok/lidar_kitty360/lidargen/metrics/fid/lidargen_fid.py", line 50, in get_fid
    mu1, sigma1 = compute_stats(folder1, indices)
  File "/home/cse/Desktop/ashok/lidar_kitty360/lidargen/metrics/fid/lidargen_fid.py", line 37, in compute_stats
    all_activations = load_activations(load, indices)
  File "/home/cse/Desktop/ashok/lidar_kitty360/lidargen/metrics/fid/lidargen_fid.py", line 31, in load_activations
    all_activations = np.stack(all_arrays, axis=0)
  File "<__array_function__ internals>", line 5, in stack
  File "/home/cse/miniconda3/envs/lidar3/lib/python3.8/site-packages/numpy/core/shape_base.py", line 423, in stack
    raise ValueError('need at least one array to stack')
ValueError: need at least one array to stack

Am I doing something wrong?

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