You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
0%| | 0/1018 [00:00<?, ?it/s]
---------------------------------------------------------------------------
IndexError Traceback (most recent call last)
Cell In[27], line 14
11 tp_map = np.load(f'{output_root}.raw.2.npy')
13 pred_map = process_segmentation(np_map, hv_map, tp_map)
---> 14 type_freqs = process_composition(pred_map)
15 semantic_predictions.append(pred_map)
16 composition_predictions.append(type_freqs)
Cell In[25], line 21, in process_composition(pred_map)
18 # ! not all types exist within the same spatial location
19 # ! so we have to create a placeholder and put them there
20 type_freqs = np.zeros(NUM_TYPES)
---> 21 type_freqs[type_freqs_[0]] = type_freqs_[1]
22 return type_freqs
IndexError: index 250 is out of bounds for axis 0 with size 7
Because the type_map is giving out array numbers like these
([ 0, 250, 252, 253], dtype=int32) in place of 1-6.
The text was updated successfully, but these errors were encountered:
In the baseline code following code section
I am getting this error
Because the type_map is giving out array numbers like these
([ 0, 250, 252, 253], dtype=int32) in place of 1-6.
The text was updated successfully, but these errors were encountered: