Skip to content
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

error for load_partition_data_mnist() #283

Open
wants to merge 1,412 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1412 commits
Select commit Hold shift + click to select a range
74d0eb5
update dockerfile.
Jun 6, 2022
980b7b3
update dockerfile.
Jun 6, 2022
b07406c
update dockerfile.
Jun 6, 2022
3fa8375
update dockerfile.
Jun 6, 2022
4679d49
update dockerfile.
Jun 6, 2022
8e2fc49
update build-docker.sh
Jun 6, 2022
e02cd99
update dockerfile.
Jun 6, 2022
84bcd62
update dockerfile.
Jun 6, 2022
6d5d454
add fednlp text classification
MrigankRaman Jun 6, 2022
c4bfd05
Update run_step_by_step_example.sh
MrigankRaman Jun 6, 2022
db53aa3
update dockerfile..
Jun 6, 2022
d0588bc
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 6, 2022
1980e0a
fixed #66: received three FINISH messages
Jun 6, 2022
3274dc1
fixed #90: when stopping the run, window crashed.
Jun 6, 2022
d980658
fixed #81: add login option --local_server (-ls)
Jun 6, 2022
7121b43
Update server_login.py
chaoyanghe Jun 6, 2022
0220b60
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 6, 2022
df5d1df
fixed #235: add fedml status cli and update logout cli.
Jun 6, 2022
664deeb
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 6, 2022
d5b69c8
Delete unnecessary files
emirceyani Jun 6, 2022
0e8f456
Delete unnecessary files
emirceyani Jun 6, 2022
0462854
add fedml status.
Jun 6, 2022
7b8092c
no message
Jun 6, 2022
1fd375f
Update dataset choices
emirceyani Jun 6, 2022
dd2e4d5
Update arguments.py
chaoyanghe Jun 6, 2022
d6a0b2f
Update arguments.py
chaoyanghe Jun 6, 2022
aac56c7
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 6, 2022
79f77b4
add single process examples
Nicole456 Jun 6, 2022
acc078d
Update arguments.py
chaoyanghe Jun 6, 2022
2123e07
Update torch_moleculenet_property_prediction.py
chaoyanghe Jun 6, 2022
01c2bf6
Upload moleucle main
emirceyani Jun 6, 2022
7248cfe
fix bug for FedGraphNN MPI simulation
chaoyanghe Jun 6, 2022
bb432ab
fix bug for fedgraphnn
chaoyanghe Jun 6, 2022
de4a695
change learning rat eargument
emirceyani Jun 6, 2022
2242174
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
emirceyani Jun 6, 2022
a90c53c
update moleculenet graph reg config
emirceyani Jun 7, 2022
bf0fa76
disable devops build temporarily.
Jun 7, 2022
e203695
Upload files for Social network classification
emirceyani Jun 7, 2022
b1e4d4c
fix dataset name
emirceyani Jun 7, 2022
92dec1d
fix TUDataset path -social networks graph clf
emirceyani Jun 7, 2022
ddc0c7a
Upload moleculenet graph property pred files
emirceyani Jun 7, 2022
2f66f6c
Submit ego networks link prediction
emirceyani Jun 7, 2022
4bd83fb
ego networks link pred codes
emirceyani Jun 7, 2022
2bfcddd
fednlp bugs removed
MrigankRaman Jun 7, 2022
f205879
build(fedcv): image classification
Jun 7, 2022
fc8604b
fix: ImageNet dataset
Jun 7, 2022
31350b8
Update server_login.py
chaoyanghe Jun 7, 2022
79dd146
fednlp remove bug from create_model
MrigankRaman Jun 7, 2022
9d46d99
fix bugs for fedgraphnn
chaoyanghe Jun 7, 2022
e2a35a7
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
MrigankRaman Jun 7, 2022
6be3bcb
Update sage_readout_trainer_regression.py
chaoyanghe Jun 7, 2022
c0948b0
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
MrigankRaman Jun 7, 2022
f25ec91
finish the debugging for moleculenet
chaoyanghe Jun 7, 2022
4c1dc09
Update README.md
chaoyanghe Jun 7, 2022
c38791f
Upload gpu_mapping.yaml for ego networks
emirceyani Jun 7, 2022
2364c5b
Upload codes for subgraph link prediction
emirceyani Jun 7, 2022
931621d
debug
chaoyanghe Jun 7, 2022
1609d46
Fix download scripts for fed subgraph LP
emirceyani Jun 8, 2022
c055e85
bug fix for social_networks
chaoyanghe Jun 8, 2022
8cd7df7
Upload subgraph relation prediction files
emirceyani Jun 8, 2022
2eb797c
bug fix for social network graphs
chaoyanghe Jun 8, 2022
e8cb8d6
Upload subgraph link prediction
emirceyani Jun 8, 2022
bcce04f
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
emirceyani Jun 8, 2022
2d8770d
upload README for fed subgraph relpred
emirceyani Jun 8, 2022
ddbc520
build(fedcv): image classification running method
Jun 8, 2022
785e10a
update sh files
chaoyanghe Jun 8, 2022
c09b465
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 8, 2022
18d1e2c
Upload RecSys SubgraphLP Codes
emirceyani Jun 8, 2022
b78c40a
fix args.data_cache_dir
emirceyani Jun 8, 2022
d0b7576
Ego networks node clf codes
emirceyani Jun 8, 2022
7f29bc1
update jenkinsfile for the email list.
Jun 8, 2022
4b8dfa4
update jenkinsfile for the email list.
Jun 8, 2022
68afbe3
Merge branch 'master' of https://github.com/FedML-AI/FedML
Jun 8, 2022
eac85e9
Update data loader for ego net link pred
emirceyani Jun 8, 2022
cbd99e2
Update ego networks link and node
emirceyani Jun 8, 2022
13ed413
Fix weight decay in fed linkpred
emirceyani Jun 8, 2022
a585e0f
link prediction
chaoyanghe Jun 8, 2022
d817a92
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 8, 2022
342d242
recsys
chaoyanghe Jun 8, 2022
c69c097
upload ego network fed-lp trainer
emirceyani Jun 8, 2022
a94ab5b
Upload configs for ego networks link pred
emirceyani Jun 8, 2022
b9a6a4e
data loader update
emirceyani Jun 8, 2022
a01cb2a
bug fix for fedgraphnn
chaoyanghe Jun 8, 2022
925989c
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 8, 2022
c6a1ea3
Ego networks node clf codes
emirceyani Jun 8, 2022
885ddf0
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
emirceyani Jun 8, 2022
6feb57f
polish readme
chaoyanghe Jun 8, 2022
c2179b5
Update federated_nc_trainer.py
chaoyanghe Jun 8, 2022
4e0258f
update cli to add roles for cloud agent and cloud server.
Jun 8, 2022
b5a7444
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 8, 2022
fb32c21
update the setup conda script.
Jun 8, 2022
0258a0f
update jenkinsfile.
Jun 8, 2022
d0408d7
rename file.
Jun 8, 2022
0877542
update dockerfile.
Jun 8, 2022
648447a
update dockerfile.
Jun 8, 2022
18b7a9d
Merge branch 'dev/v0.7.0' of https://github.com/Nicole456/FedML into …
chaoyanghe Jun 8, 2022
246ecbb
update dockerfile.
Jun 8, 2022
938ddc4
update dockerfile.
Jun 8, 2022
d33e4e9
update dockerfile.
Jun 8, 2022
2b791ed
update dockerfile.
Jun 8, 2022
3b1b3ab
Update README.md
MrigankRaman Jun 8, 2022
a6665b9
update dockerfile.
Jun 8, 2022
ddd3e99
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 8, 2022
a0e1bbc
update jenkinsfile.
Jun 8, 2022
36f5534
Update data_loader.py
chaoyanghe Jun 8, 2022
15d11c4
Merge branch 'Nicole456-dev/v0.7.0' into dev/v0.7.0
chaoyanghe Jun 8, 2022
437e8b3
update jenkinsfile.
Jun 8, 2022
460b4d7
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 8, 2022
a569a6e
update jenkinsfile.
Jun 8, 2022
2bd876e
update cli.
Jun 8, 2022
034ab57
update jenkinsfile.
Jun 8, 2022
fc5bddd
Merge pull request #251 from FedML-AI/dev/v0.7.0
fedml-alex Jun 8, 2022
bf8c1f2
update jenkinsfile.
Jun 8, 2022
376d44f
Merge pull request #252 from FedML-AI/dev/v0.7.0
fedml-alex Jun 8, 2022
1e6ad89
chore: add most dataset to fedcv
Jun 9, 2022
76b2604
build(fedcv): image segmentation
Jun 9, 2022
6c894e8
fix(fedcv): image segmentation model and data hub
Jun 9, 2022
ae3df6e
restructure data and correct formatting
MrigankRaman Jun 9, 2022
50da917
Create README.md
MrigankRaman Jun 9, 2022
fa788ad
Update README.md
MrigankRaman Jun 9, 2022
f168ee3
restructure data fednlp
MrigankRaman Jun 9, 2022
046eb2d
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
MrigankRaman Jun 9, 2022
0e9bb88
Delete README.md
MrigankRaman Jun 9, 2022
5361185
Create README.md
MrigankRaman Jun 9, 2022
cd2ad35
Update README.md
MrigankRaman Jun 9, 2022
b7905ff
add sp hierarchical/turboaggregate/verticalfl examples
Nicole456 Jun 9, 2022
03a26dc
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Nicole456 Jun 9, 2022
cad7c45
update devops files.
Jun 9, 2022
8c72b72
update jenkinsfile.
Jun 9, 2022
a0ff27c
update jenkinsfile.
Jun 9, 2022
f90f10c
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 9, 2022
37dab9c
server_mnn_lsa
zhang-tuo-pdf Jun 9, 2022
8b197cb
change mpc folder
chaoyanghe Jun 9, 2022
ef6254f
eval_func_for_seq_tagging_trainer_incomplete
MrigankRaman Jun 9, 2022
87d5aa9
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
MrigankRaman Jun 9, 2022
4cf1997
secagg refactoring
chaoyanghe Jun 9, 2022
489ab70
fix init code merge issue
chaoyanghe Jun 9, 2022
1da6381
init fediot
leigao97 Jun 9, 2022
520ec24
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
leigao97 Jun 9, 2022
2d9770a
update README
leigao97 Jun 9, 2022
0d8eccd
chore: add fedml build-in image classification datasets
Jun 10, 2022
6757a1b
chore: remove coco detection in image segmentation
Jun 10, 2022
bd47691
build(fedcv): init object detection
Jun 10, 2022
4b7c75f
bug fix for mnist data loader
chaoyanghe Jun 10, 2022
80b8075
Update simulator.py
chaoyanghe Jun 10, 2022
be59dea
Update mlops_metrics.py
chaoyanghe Jun 10, 2022
433ca4b
Update mlops_metrics.py
chaoyanghe Jun 10, 2022
9d7a43c
build(fedcv): update yolov5 model, add detection trainer
Jun 10, 2022
41db4c1
update cli.
Jun 10, 2022
5de948e
add custom trainer
leigao97 Jun 10, 2022
5edecbe
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
leigao97 Jun 10, 2022
6e0d328
add custom trainer
leigao97 Jun 10, 2022
babb0e0
span_extraction_data_and_model_added
MrigankRaman Jun 10, 2022
da8c9dc
Update README.md
MrigankRaman Jun 10, 2022
4b6a96d
fix bug
leigao97 Jun 10, 2022
f3c668a
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
leigao97 Jun 10, 2022
e4588f1
fix bug
leigao97 Jun 11, 2022
140a39f
add mpi examples
Nicole456 Jun 11, 2022
0f24fc8
build(fedcv): medical chest xray image clf
Jun 11, 2022
392daea
Merge pull request #253 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 11, 2022
4dfdc4a
refactor cli logics.
Jun 11, 2022
099a58d
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 11, 2022
be366f3
import bug fix for FedGKT
chaoyanghe Jun 11, 2022
e9e7dde
bug removed span extraction dataloader
MrigankRaman Jun 11, 2022
fd3edc5
bug removed span extraction dataloader
MrigankRaman Jun 11, 2022
29d7087
update cli.
Jun 11, 2022
a6426a1
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 11, 2022
50876da
update cli.
Jun 11, 2022
c14b443
Update fedml_config.yaml
chaoyanghe Jun 11, 2022
e7f0ac6
span_extraction_trainer_added
MrigankRaman Jun 11, 2022
e703a2b
update devops files.
Jun 11, 2022
85ab248
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 11, 2022
e55980b
update dockerfile.
Jun 11, 2022
dea53c4
update devops files.
Jun 12, 2022
605b791
Merge pull request #255 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 12, 2022
7d106ac
update devops file.
Jun 12, 2022
b30a967
Merge pull request #256 from FedML-AI/dev/v0.7.0
fedml-alex Jun 12, 2022
750fdf3
update devops files.
Jun 12, 2022
f4507ce
Merge pull request #257 from FedML-AI/dev/v0.7.0
fedml-alex Jun 12, 2022
6f99d3c
Merge branch 'master' into test/v0.7.0
fedml-alex Jun 12, 2022
24d4653
Merge pull request #258 from FedML-AI/test/v0.7.0
fedml-alex Jun 12, 2022
7f6345c
update devops files.
Jun 12, 2022
05eeb05
Merge pull request #259 from FedML-AI/dev/v0.7.0
fedml-alex Jun 12, 2022
9a32a9c
Merge branch 'master' into test/v0.7.0
chaoyanghe Jun 12, 2022
a4ff3ce
Merge pull request #260 from FedML-AI/test/v0.7.0
chaoyanghe Jun 12, 2022
24ff30d
release v0.7.0
chaoyanghe Jun 12, 2022
c829221
add seq2seq application
MrigankRaman Jun 12, 2022
e688961
add seq2seq application
MrigankRaman Jun 12, 2022
b9133c2
bug fix
MrigankRaman Jun 13, 2022
f6489cf
bug fix
MrigankRaman Jun 13, 2022
85ec07f
Merge pull request #261 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 13, 2022
0ece324
Update README.md
MrigankRaman Jun 14, 2022
9d5372f
Update README.md
MrigankRaman Jun 14, 2022
aba290d
remove unused code
chaoyanghe Jun 14, 2022
8b5f80c
rename fediot app
leigao97 Jun 14, 2022
a22c812
debug_on_gpu
MrigankRaman Jun 14, 2022
976dc06
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
MrigankRaman Jun 14, 2022
695706a
Update torch_fedavg_20news_bert_step_by_step_example.py
MrigankRaman Jun 14, 2022
427329b
Update README.md
MrigankRaman Jun 14, 2022
704676c
update readme
leigao97 Jun 14, 2022
d6978cd
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
leigao97 Jun 14, 2022
981cf3d
update config
leigao97 Jun 14, 2022
693167f
Merge pull request #265 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 14, 2022
fd1731b
Update test_mlops_cli.py
chaoyanghe Jun 14, 2022
3ed35cf
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 14, 2022
d1d2b6d
Delete mpi_host_file
chaoyanghe Jun 15, 2022
f45dae9
fix(fedcv): image classification bugs
Jun 15, 2022
295b707
Create requirements.txt
MrigankRaman Jun 15, 2022
b8c4236
Add files via upload
MrigankRaman Jun 15, 2022
f55d76a
update cli.
Jun 15, 2022
6e1eefd
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
Jun 15, 2022
b7a7605
Merge pull request #267 from FedML-AI/dev/v0.7.0
fedml-alex Jun 15, 2022
ea3b480
Merge pull request #268 from FedML-AI/test/v0.7.0
fedml-alex Jun 15, 2022
f5d6d13
update cli.
Jun 15, 2022
015997a
Merge pull request #269 from FedML-AI/dev/v0.7.0
fedml-alex Jun 15, 2022
b7d0b3c
Merge pull request #270 from FedML-AI/test/v0.7.0
fedml-alex Jun 15, 2022
70d4122
update cli.
Jun 15, 2022
3fc5aaa
update cli.
Jun 15, 2022
f13eb83
update cli.
Jun 15, 2022
d7ab50c
update cli.
Jun 15, 2022
9ed3a52
Update README.md
MrigankRaman Jun 15, 2022
287f8b8
Update README.md
MrigankRaman Jun 15, 2022
f66e464
Update README.md
MrigankRaman Jun 15, 2022
72fa9a2
Merge pull request #271 from FedML-AI/dev/v0.7.0
fedml-alex Jun 15, 2022
87bff33
Merge pull request #272 from FedML-AI/test/v0.7.0
fedml-alex Jun 15, 2022
0c51354
Update README.md
MrigankRaman Jun 15, 2022
70b4de3
fix(fedcv): update config file
Jun 16, 2022
536dda1
gpu debug seq2seq
MrigankRaman Jun 16, 2022
1d52dd6
gpu debug seq2seq
MrigankRaman Jun 16, 2022
82ffeae
add examples
Nicole456 Jun 16, 2022
d506c64
fixed compiling error.
Jun 16, 2022
ce75299
fixed compiling error.
Jun 16, 2022
efcedb6
update the doc
chaoyanghe Jun 16, 2022
7e45630
Merge branch 'dev/v0.7.0' of https://github.com/FedML-AI/FedML into d…
chaoyanghe Jun 16, 2022
f7559da
Update user_guide.md
chaoyanghe Jun 16, 2022
63719ae
update htmls
chaoyanghe Jun 16, 2022
53e0661
Merge pull request #274 from FedML-AI/dev/v0.7.0
FedML-AI-admin Jun 16, 2022
8413657
Merge pull request #275 from FedML-AI/test/v0.7.0
FedML-AI-admin Jun 16, 2022
e902534
update the doc
chaoyanghe Jun 16, 2022
238a375
Merge pull request #276 from FedML-AI/dev/v0.7.0
FedML-AI-admin Jun 16, 2022
d464509
Merge pull request #277 from FedML-AI/test/v0.7.0
FedML-AI-admin Jun 16, 2022
ac8e411
support DevOps and remove unused CI folder
chaoyanghe Jun 16, 2022
3c250a1
Merge pull request #278 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 16, 2022
9944540
Merge pull request #279 from FedML-AI/test/v0.7.0
chaoyanghe Jun 16, 2022
8f5ac00
update doc
chaoyanghe Jun 16, 2022
91821b0
update doc
chaoyanghe Jun 16, 2022
35bff8f
add publication list "Awesome-Federated-Learning"
chaoyanghe Jun 16, 2022
819a933
Merge pull request #280 from FedML-AI/dev/v0.7.0
chaoyanghe Jun 16, 2022
a1588f2
Merge pull request #281 from FedML-AI/test/v0.7.0
chaoyanghe Jun 16, 2022
9351509
error for load_partition_data_mnist()
GuokaiLiu Jun 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .github/workflows/test_mlops_cli.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This is a basic workflow to help you get started with Actions

name: MLOps CLI Test

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "mlops-cli-test"
mlops-cli-test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
shell: bash
working-directory: python

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Runs a single command using the runners shell
- name: Run test cases for fedml-build, mlops-build and mlops-login
run: cd build_tools/github/; conda info; source ./test_mlops_cli.sh

# Runs a single command using the runners shell
#- name: Run logout to exit mlops cli
# run: cd build_tools/github/; conda info; source ./test_mlops_cli.sh logout
# continue-on-error: true
38 changes: 23 additions & 15 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.idea
.idea/*
.vscode/*
*.pkl

*.pyc
./*/*.pyc
Expand All @@ -28,7 +29,7 @@ python/dist
python/FedML.egg-info

doc/deploy
doc/en/_build
doc/en/_build/doctrees


*.h5
Expand Down Expand Up @@ -79,17 +80,24 @@ test/fedml_user_code/simulation_mpi/data/mnist/MNIST/download_and_unzip.sh
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._train
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._test
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._.DS_Store
test/fedml_user_code/simulation_sp/data/mnist/__MACOSX/MNIST/._.DS_Store
test/fedml_user_code/simulation_sp/data/mnist/__MACOSX/MNIST/._test
test/fedml_user_code/simulation_sp/data/mnist/__MACOSX/MNIST/._train
test/fedml_user_code/simulation_sp/data/mnist/MNIST/download_and_unzip.sh
test/fedml_user_code/simulation_sp/data/mnist/MNIST/README.md
test/fedml_user_code/simulation_sp/data/mnist/MNIST/stats.py
test/fedml_user_code/simulation_sp/data/mnist/MNIST/stats.sh
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._.DS_Store
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._test
test/fedml_user_code/simulation_mpi/data/mnist/__MACOSX/MNIST/._train
test/fedml_user_code/simulation_mpi/data/mnist/MNIST/download_and_unzip.sh
test/fedml_user_code/simulation_mpi/data/mnist/MNIST/README.md
test/fedml_user_code/simulation_mpi/data/mnist/MNIST/stats.py
test/fedml_user_code/simulation_mpi/data/mnist/MNIST/stats.sh

app/fedgraphnn/social_networks_graph_clf/data/TUDataset/*
app/fedgraphnn/social_networks_graph_clf/data/TUDataset/collab.pickle
app/fedgraphnn/social_networks_graph_clf/x_hist.png

app/fedgraphnn/subgraph_relation_pred/data/FB15k-237/*.dict
app/fedgraphnn/subgraph_relation_pred/data/FB15k-237/*.txt
app/fedgraphnn/subgraph_relation_pred/data/wn18rr/*.dict
app/fedgraphnn/subgraph_relation_pred/data/wn18rr/*.txt
app/fedgraphnn/subgraph_relation_pred/data/YAGO3-10/*.dict
app/fedgraphnn/subgraph_relation_pred/data/YAGO3-10/*.txt

app/fedgraphnn/subgraph_link_pred/data/FB15k-237/*.dict
app/fedgraphnn/subgraph_link_pred/data/FB15k-237/*.txt
app/fedgraphnn/subgraph_link_pred/data/wn18rr/*.dict
app/fedgraphnn/subgraph_link_pred/data/wn18rr/*.txt
app/fedgraphnn/subgraph_link_pred/data/YAGO3-10/*.dict
app/fedgraphnn/subgraph_link_pred/data/YAGO3-10/*.txt

app/fedgraphnn/ego_networks_link_pred/data/ego-networks
app/fedgraphnn/ego_networks_node_clf/data/ego-networks
1 change: 0 additions & 1 deletion app/README.md

This file was deleted.

File renamed without changes.
4 changes: 4 additions & 0 deletions app/fedcv/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
*.zip
__MACOSX/
__pycache__/
*.tmp
11 changes: 11 additions & 0 deletions app/fedcv/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## FedCV

```bash
mkdir fedcv
cd fedcv
git init
git remote add -f origin https://github.com/FedML-AI/FedML.git
git config core.sparsecheckout true
echo "app/fedcv" >> .git/info/sparse-checkout
git pull origin master
```
20 changes: 20 additions & 0 deletions app/fedcv/image_classification/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# FedCV for Image Classification

## Model

## Dataset

## How to use

### Linux

```sh
sudo chmod +x run_image_classification.sh
./run_image_classification.sh
```

### Windows

```bat
mpiexec -np 5 python run_image_classification.py --cf config\fedml_config.yaml
```
46 changes: 46 additions & 0 deletions app/fedcv/image_classification/config/fedml_config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
common_args:
training_type: "simulation"
random_seed: 0

data_args:
dataset: "MNIST"
data_cache_dir: "./data/"
partition_method: "hetero"
partition_alpha: 0.5

model_args:
model: "densenet"
image_size: [112, 112]
class_num: 10

train_args:
federated_optimizer: "FedAvg"
client_id_list: "[]"
client_num_in_total: 4
client_num_per_round: 4
comm_round: 100
epochs: 5
batch_size: 64
client_optimizer: sgd
lr: 0.03
weight_decay: 0.001

validation_args:
frequency_of_the_test: 5

device_args:
worker_num: 4
using_gpu: false
gpu_mapping_file: config/gpu_mapping.yaml
gpu_mapping_key: mapping_default

comm_args:
backend: "MPI"
is_mobile: 0

tracking_args:
log_file_dir: ./log
enable_wandb: false
wandb_key: ee0b5f53d949c84cee7decbe7a629e63fb2f8408
wandb_project: fedml
wandb_name: fedml_torch_image_classification
61 changes: 61 additions & 0 deletions app/fedcv/image_classification/config/gpu_mapping.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Please check "GPU_MAPPING.md" to see how to define the topology
# You can define a cluster containing multiple GPUs within multiple machines by defining `gpu_mapping.yaml` as follows:

# config_cluster0:
# host_name_node0: [num_of_processes_on_GPU0, num_of_processes_on_GPU1, num_of_processes_on_GPU2, num_of_processes_on_GPU3, ..., num_of_processes_on_GPU_n]
# host_name_node1: [num_of_processes_on_GPU0, num_of_processes_on_GPU1, num_of_processes_on_GPU2, num_of_processes_on_GPU3, ..., num_of_processes_on_GPU_n]
# host_name_node_m: [num_of_processes_on_GPU0, num_of_processes_on_GPU1, num_of_processes_on_GPU2, num_of_processes_on_GPU3, ..., num_of_processes_on_GPU_n]


# this is used for 10 clients and 1 server training within a single machine which has 4 GPUs
mapping_default:
ChaoyangHe-GPU-RTX2080Tix4: [3, 3, 3, 2]

# this is used for 4 clients and 1 server training within a single machine which has 4 GPUs
mapping_config1_5:
host1: [2, 1, 1, 1]

# this is used for 10 clients and 1 server training within a single machine which has 4 GPUs
mapping_config2_11:
host1: [3, 3, 3, 2]

# this is used for 10 clients and 1 server training within a single machine which has 8 GPUs
mapping_config3_11:
host1: [2, 2, 2, 1, 1, 1, 1, 1]

# this is used for 4 clients and 1 server training within a single machine which has 8 GPUs, but you hope to skip the GPU device ID.
mapping_config4_5:
host1: [1, 0, 0, 1, 1, 0, 1, 1]

# this is used for 4 clients and 1 server training using 6 machines, each machine has 2 GPUs inside, but you hope to use the second GPU.
mapping_config5_6:
host1: [0, 1]
host2: [0, 1]
host3: [0, 1]
host4: [0, 1]
host5: [0, 1]
# this is used for 4 clients and 1 server training using 2 machines, each machine has 2 GPUs inside, but you hope to use the second GPU.
mapping_config5_2:
gpu-worker2: [1,1]
gpu-worker1: [2,1]

# this is used for 10 clients and 1 server training using 4 machines, each machine has 2 GPUs inside, but you hope to use the second GPU.
mapping_config5_4:
gpu-worker2: [1,1]
gpu-worker1: [2,1]
gpu-worker3: [3,1]
gpu-worker4: [1,1]

# for grpc GPU mapping
mapping_FedML_gRPC:
hostname_node_server: [1]
hostname_node_1: [1, 0, 0, 0]
hostname_node_2: [1, 0, 0, 0]

# for torch RPC GPU mapping
mapping_FedML_tRPC:
lambda-server1: [0, 0, 0, 0, 2, 2, 1, 1]
lambda-server2: [2, 1, 1, 1, 0, 0, 0, 0]

#mapping_FedML_tRPC:
# lambda-server1: [0, 0, 0, 0, 3, 3, 3, 2]
29 changes: 29 additions & 0 deletions app/fedcv/image_classification/data/FederatedEMNIST/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Introduction

Federated EMNIST dataset extends MNIST dataset with upper and lower case English characters. It is suggested by "Adaptive Federated Optimization" (https://arxiv.org/abs/2003.00295, Google AI).

In order to support more frameworks like PyTorch, we loaded data from TensorFlow Federated (TFF) [emnist load_data API](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/emnist/load_data) and saved it on [google drive]( https://drive.google.com/drive/folders/1S377qFHM_q_o1hE7-ODlmtRT6iV6N7AT?usp=sharing) in h5 format.

# Prepare FederatedEMNIST Dataset

You can run the following script to download the dataset:

```
sh download_federatedEMNIST.sh
```

By default, it will download EMNIST dataset which includes digits and characters. TFF also supports getting only the digits data from EMNIST dataset. So we generated another digits only dataset from it. To obtain the digits only dataset, use the following command to download it:

```
sh download_federatedEMNIST.sh digit
```


# Statistics of FederatedEMNIST Dataset

Data partition is the same as [TFF](https://www.tensorflow.org/federated/api_docs/python/tff/simulation/datasets/emnist), with the following statistics.

| DATASET | TRAIN CLIENTS | TRAIN EXAMPLES | TEST CLIENTS | TEST EXAMPLES |
| --------- | ------------- | -------------- | ------------ | ------------- |
| EMNIST-62 | 3,400 | 671,585 | 3,400 | 77,483 |

Loading