Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write test for merging transform #363

Open
benjijamorris opened this issue Mar 30, 2024 · 2 comments
Open

Write test for merging transform #363

benjijamorris opened this issue Mar 30, 2024 · 2 comments

Comments

@benjijamorris
Copy link
Contributor

  • test with example experiment data with missing_key_mode=create
@benjijamorris
Copy link
Contributor Author

Traceback (most recent call last):
File "/Users/brian.kim/anaconda3/envs/ml-seg/lib/python3.10/site-packages/monai/transforms/transform.py", line 141, in apply_transform
return _apply_transform(transform, data, unpack_items, lazy, overrides, log_stats)
File "/Users/brian.kim/anaconda3/envs/ml-seg/lib/python3.10/site-packages/monai/transforms/transform.py", line 98, in _apply_transform
return transform(data, lazy=lazy) if isinstance(transform, LazyTrait) else transform(data)
File "/Users/brian.kim/anaconda3/envs/ml-seg/lib/python3.10/site-packages/cyto_dl/image/transforms/multiscale_cropper.py", line 144, in call
slices = self.generate_slices({k: image_dict[k] for k in available_keys})
File "/Users/brian.kim/anaconda3/envs/ml-seg/lib/python3.10/site-packages/cyto_dl/image/transforms/multiscale_cropper.py", line 144, in
slices = self.generate_slices({k: image_dict[k] for k in available_keys})
KeyError: 'target'

@yrkim98
Copy link

yrkim98 commented Apr 1, 2024

To replicate my issue with segmenter:

  • Using segmentation_plugin.yaml
  • Changed all missing_key_mode’s in /data/im2im/segmentation_plugin.yaml to “create" instead of “ignore"
  • Running training with example_experiment_data from cyto-dl
  • CSV contaings raw, seg1, seg2, exclude_mask, base_image, merge_mask columns

More info at https://alleninstitute.atlassian.net/wiki/spaces/SF/pages/184549397/Current+cyto-dl+issues+with+ml-segmenter under Training is not working using the sementation_plugin config -> Merged transform not working with the fixes on cyto-dl branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants