Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract lambda to named function in monai transforms for dataloader
Pickling of lambda functions is not supported in Windows, causing issue with get_features when iterating over dataset. Extraction of lambda x: x["image_path"].as_tensor() into named function called image_as_tensor on get_transforms sidesteps the issue.
- Loading branch information