Open premchedella opened 1 year ago
I was able to resolve the TypeError: only integer scalar arrays can be converted to a scalar index
. Following is the change
scenes = [u''.join(chr(c) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]]
to
scenes = [u''.join(chr(c[0]) for c in h5_file[obj_ref]) for obj_ref in h5_file['sceneTypes'][0]]
When I ran the following
python ../code/utils/extract_official_train_test_set_from_mat.py nyu_depth_v2_labeled.mat splits.mat ./nyu_depth_v2/official_splits/
Got the follwoing:
Any clue to how to resolve this error.