Windows support in OpenFL tutorials #546
Unanswered
Maxime-Perret
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I've been experimenting with OpenFL trying to run different tutorials. Since supporting Windows was mentioned in #525, I am personally using Windows 11 Pro and ran into two problems which I believe are OS related in the different tutorials.
For
DataLoader
, havingnum_workers
any larger than0
causes an issue as such. Thus, for Windows users, havingnum_workers = 0
would be necessary. As far as I know, out of the interactive api folder, this concerns the tutorials Dogs vs Cats, Histology, Histology FedCurv, Kvasir UNet, Lightning MNIST GAN, MVTec PatchSVDD, Market Re-ID, MedMNIST 2D, MedMNIST 3D.Some of the arguments in the plans of the tutorials (in
workspace/plan/plan.yaml
) contain!!
, like for examplecriterion: !!python/object:torch.nn.modules.loss.CrossEntropyLoss
. When parsing the plan infederated/plan/plan.py
, line 42 usessafe_load
which together causes an issuecould not determine a constructor for the tag
. Using the fix suggested here, I got it to work by replacingsafe_load(yaml_path.read_text())
byload(yaml_path.read_text(), Loader=yaml.Loader)
.Best
Edit: Updated my post and removed personal issues after fixing some of my problems with a clean reinstall of Python+Anaconda, and created issue #549 from what is left, so I guess it is more appropriate following up on the issue page.
Beta Was this translation helpful? Give feedback.
All reactions