Skip to content

Conversation

@gml16
Copy link
Contributor

@gml16 gml16 commented Apr 26, 2020

Fixes #306.

Description

Fixed broken pipe issue on Windows machine in examples by adding if __name__ == '__main__'. Another possible fix would be to set the number of workers in DataLoader to 0.
Also fixed a typo in a notebook.

Status

Ready

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or new feature that would cause existing functionality to change)
  • New tests added to cover the changes
  • Docstrings/Documentation updated

Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks very much for your quick PR.
Could you please help move the main logic to a function? Just follow the PyTorch recommended way.
Others look good to me.
Thanks.

Copy link
Contributor

@Nic-Ma Nic-Ma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me now.
Thanks again for your PR.

@wyli wyli merged commit f87a258 into Project-MONAI:master Apr 26, 2020
@gml16
Copy link
Contributor Author

gml16 commented Apr 26, 2020

Thank you for pointing out the PyTorch recommended fashion :)

@gml16 gml16 deleted the 306-examples-broken-pipe-windows branch May 1, 2020 11:01
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

Successfully merging this pull request may close these issues.

Segmentation and classification examples throw runtime errors

3 participants