bibikar / feddst Goto Github PK
View Code? Open in Web Editor NEWFederated Dynamic Sparse Training
Home Page: https://arxiv.org/abs/2112.09824
License: MIT License
Federated Dynamic Sparse Training
Home Page: https://arxiv.org/abs/2112.09824
License: MIT License
how do I solve this issue?
PS G:\Code\python\feddst-main> python dst.py --dataset cifar100 --sparsity 0.8 --readjustment-ratio 0.01 --rounds-between-readjustments 15
d:\aconda\lib\site-packages\numpy\_distributor_init.py:32: UserWarning: loaded more than 1 DLL from .libs:
d:\aconda\lib\site-packages\numpy\.libs\libopenblas.NOIJJG62EMASZI6NYURL6JBKM4EVBGM7.gfortran-win_amd64.dll
d:\aconda\lib\site-packages\numpy\.libs\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-win_amd64.dll
stacklevel=1)
Fetching dataset...
Files already downloaded and verified
Files already downloaded and verified
Traceback (most recent call last):
File "dst.py", line 156, in <module>
min_samples=args.min_samples, samples=args.samples_per_client)
File "G:\Code\python\feddst-main\datasets.py", line 260, in get_dataset
loaders = DATASET_LOADERS[dataset](**kwargs)
File "G:\Code\python\feddst-main\datasets.py", line 187, in get_cifar100
return get_mnist_or_cifar10('cifar100', *args, **kwargs)
File "G:\Code\python\feddst-main\datasets.py", line 170, in get_mnist_or_cifar10
sampler=train_sampler)
File "d:\aconda\lib\site-packages\torch\utils\data\dataloader.py", line 219, in __init__
batch_sampler = BatchSampler(sampler, batch_size, drop_last)
File "d:\aconda\lib\site-packages\torch\utils\data\sampler.py", line 186, in __init__
.format(sampler))
ValueError: sampler should be an instance of torch.utils.data.Sampler, but got sampler=[22698 33390 4446 33283 45771 42299 21185 10162 45141 14705 31653 13757
48899 48083 19944 16561 3325 12918 14508 7476 38872 30302 30488 18939
44300 39420 45427 36900 15161 11603 40117 37450 46114 16522 36011 5
33643 35712 2899 49841 42602 7778 21439 13830 47418 11768 47719 22901
22770 42600 32912 23262 16487 44006 14852 37454 30319 3642 22366 19071
16431 20594 26033 18787 42249 23256 31776 14303 19008 45187 12456 16347
44903 23723 9382 41662 28269 9748 6430 36681 44404 6414 9492 35776
25226 15856 41338 13786 47888 48780 35629 10097 14327 41396 43233 14005
16429 23779 48810 24 14457 43244 35796 8612 44231 5957 10090 11346
43742 32739]
Dear Author,
We have followed your instructions and kept all of your code intact, using the default settings of samples_per_client=20, SGD lr=0.01, etc. We then run the provided command python3 dst.py --dataset cifar10 --sparsity 0.0
from the readme file. However, the trained global model's performance (accuracy) on the cifar10 test data is still approximately 10%.
We would like to inquire if there are any modifications or changes we can make to the default training settings in order to reproduce the accuracy reported in your paper.
Thank you for your time and assistance.
Best regards
Hello, how do you download the mpl and synflow libraries in the feddst project?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.