Open raeesahhy opened 6 months ago
So the error is here:
File ~/micromamba/envs/annoseg/lib/python3.12/site-packages/iterseg/segmentation.py:104, in affinity_watershed_prep_config(input_volume_layer=<Image layer 'image_time_0'>, unet_or_config_file='/Users/raeesahhayatudin/Downloads/Training_Valid...sts_z_intact/242405_203956_unet_my-unet_meta.json', reference_layer='None')
103 affinities_extent = 1
--> 104 if unet == 'labels layer':
105 unet = reference_layer.metadata['unet']
which corresponds to this code:
I don't rightly know what it's supposed to do, because the unet
variable cannot be 'labels layer', ever, in this code. 😂 I think this would fix this if there was a 'unet'
key in the config: replace:
with
unet = config.get('unet', None)
But the whole function is pretty iffy so might be worth revisiting the entire flow. 😅
Hi everyone,
I received the following error when I tried to run segment_data in Napari: