Skip to content
Discussion options

You must be logged in to vote

yes, the root cause is that cuda runtime doesn't support fork start method for multiprocessing https://pytorch.org/docs/stable/notes/multiprocessing.html#cuda-in-multiprocessing, I think you can try either make sure the transforms are operating on cpu data, or use monai's thread data loader (https://github.com/Project-MONAI/tutorials/blob/1.3.0/acceleration/fast_training_tutorial.ipynb), or use torch.multiprocessing.set_start_method('spawn').

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Celtyee
Comment options

Answer selected by Celtyee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants