Project-MONAI / GenerativeModels

MONAI Generative Models makes it easy to train, evaluate, and deploy generative models and related applications
Apache License 2.0
555 stars 78 forks source link

2D SPADE VAE tutorial not working on Windows #482

Closed StijnvWijn closed 2 months ago

StijnvWijn commented 3 months ago

virginiafdez requested I make a separate issue and PR for fixing the tutorial on Windows, so this is the one. PR #483 belongs to this

StijnvWijn commented 2 months ago

Workaround is implemented, but due to integration with Jupytext can not be merged. For future reference do either of the following:

  1. Make sure you set the amount of workers to 0 of the dataloader to 0 if you are working in windows
  2. Wrap all the code in a if __name__ == "__main__": statement