-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows support in OpenFL tutorials #549
Comments
Hi @Maxime-Perret, thank you for providing feedback regarding the experience using OpenFL.
This will be fixed in #708.
I have run PyTorch_MedMNIST2D tutorial, which uses the
Downloading of the |
Because of having no response in 2 weeks, taking the issue as stale. Related PR will be merged soon. If there are any additions/comments please feel free to reopen. |
Hello,
I've posted this below as discussion but since I've just updated my post, I figured it would fit as an issue now related to supporting Windows.
Discussed in #546
Originally posted by Maxime-Perret October 26, 2022
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)
.Using the
fx pki install
command downloads the binaries forstep
andstep_ca
. The code to download those filters the available assets on github bycontent_type
to beapplications/gzip
inopenfl/component/ca/ca.py
, l.74. However, while the Linux assets are.tar.gz
, the Windows assets are.zip
, withcontent_type
then beingapplication/zip
. This restriction makes it impossible to find assets for Windows. I tried forcing it to accept but it still fails later on regardless.Best
Edit: Updated my post after fixing some of my problems with a clean reinstall of Python+Anaconda
The text was updated successfully, but these errors were encountered: