vijaydwivedi75 / lrgb

Long Range Graph Benchmark, NeurIPS 2022 Track on D&B
MIT License
149 stars 18 forks source link

PASCAL VOC Data Preparation Error #3

Closed HaniItani closed 1 year ago

HaniItani commented 1 year ago

Hello,

I am getting the following assertion error when I run the jupyter notebook to generate PASCAL VOC superpixel dataset. Can you please advise on how to resolve this error? I just ran the code without any modifications.

assert n_sp_extracted == np.max(superpixels) + 1, ('superpixel indices', np.unique(superpixels))

Best regards, Hani

HaniItani commented 1 year ago

I resolved the issue by setting start_label=0 in superpixels = slic(img, n_segments=n_sp_query, compactness=args['compactness'], multichannel=len(img.shape) > 2, start_label=0) in process_image_slic