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

New command line API functionality #845

Merged
merged 462 commits into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
462 commits
Select commit Hold shift + click to select a range
3b2b9a2
Merge branch 'entrypoints_base' into cli_tool_preprocess
VukW Apr 10, 2024
e301034
Merge branch 'entrypoints_base' into cli_tool_run
VukW Apr 10, 2024
6b992b5
Merge branch 'entrypoints_base' into cli_tool_verify_install
VukW Apr 10, 2024
3d7a317
Merge branch 'entrypoints_base' into cli_tool_generate_metrics
VukW Apr 10, 2024
2257f7d
Merge branch 'entrypoints_base' into cli_tool_recover_config
VukW Apr 10, 2024
7779ca3
Merge branch 'entrypoints_base' into cli_tool_construct_csv
VukW Apr 10, 2024
b7e935e
Merge branch 'entrypoints_base' into cli_tool_update_version
VukW Apr 10, 2024
7dcae95
Merge branch 'entrypoints_base' into cli_tool_anonymizer
VukW Apr 10, 2024
1cb119f
Merge branch 'entrypoints_base' into cli_tool_split_csv
VukW Apr 10, 2024
1151255
Merge branch 'entrypoints_base' into cli_tool_debug_info
VukW Apr 10, 2024
078eb08
blacked
VukW Apr 10, 2024
0c878af
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Apr 17, 2024
53a0594
codacy fix
VukW Apr 17, 2024
2a196c6
hiding false-positive subprocess issues from codacy
VukW Apr 17, 2024
09b052b
Merge remote-tracking branch 'origin/new-apis_v0.1.0-dev' into entryp…
VukW Apr 17, 2024
709617a
Merge branch 'entrypoints_base' into cli_tool_config_generator
VukW Apr 17, 2024
da477d8
Merge branch 'entrypoints_base' into cli_tool_deploy
VukW Apr 17, 2024
5b8991b
Merge branch 'entrypoints_base' into cli_tool_optimize_model
VukW Apr 17, 2024
2dcbb0a
Merge branch 'entrypoints_base' into cli_tool_patch_miner
VukW Apr 17, 2024
6d49b7d
Merge branch 'entrypoints_base' into cli_tool_preprocess
VukW Apr 17, 2024
8f08ed3
Merge branch 'entrypoints_base' into cli_tool_run
VukW Apr 17, 2024
7b3a61f
Merge branch 'entrypoints_base' into cli_tool_verify_install
VukW Apr 17, 2024
a4695e5
Merge branch 'entrypoints_base' into cli_tool_generate_metrics
VukW Apr 17, 2024
a7f0616
Merge branch 'entrypoints_base' into cli_tool_recover_config
VukW Apr 17, 2024
5c65f07
Merge branch 'entrypoints_base' into cli_tool_construct_csv
VukW Apr 17, 2024
18eb1c5
Merge branch 'entrypoints_base' into cli_tool_update_version
VukW Apr 17, 2024
be01845
Merge branch 'entrypoints_base' into cli_tool_anonymizer
VukW Apr 17, 2024
653aa8f
Merge branch 'entrypoints_base' into cli_tool_split_csv
VukW Apr 17, 2024
c45c116
Merge branch 'entrypoints_base' into cli_tool_debug_info
VukW Apr 17, 2024
1d765bf
Merge branch 'entrypoints_base' into cli_tool_collect_stats
VukW Apr 17, 2024
0818a05
Merge pull request #818 from VukW/entrypoints_base
VukW Apr 17, 2024
906dcbc
Merge branch 'cli_tool_config_generator' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
4ab7e75
Merge branch 'cli_tool_deploy' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
6094ce7
Merge branch 'cli_tool_optimize_model' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
b7db11b
Merge branch 'cli_tool_patch_miner' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
19e6c8d
Merge branch 'cli_tool_preprocess' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
0437166
Merge branch 'cli_tool_run' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
8cf076e
Merge branch 'cli_tool_verify_install' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
6cc43bc
Merge branch 'cli_tool_generate_metrics' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
17f187e
Merge branch 'cli_tool_recover_config' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
4fff153
Merge branch 'cli_tool_construct_csv' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
d8d3088
Merge branch 'cli_tool_update_version' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
fb13d69
Merge branch 'cli_tool_anonymizer' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
45af3e9
Merge branch 'cli_tool_split_csv' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
568b3af
Merge branch 'cli_tool_debug_info' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
46bffd1
Merge branch 'cli_tool_collect_stats' into new-apis_v0.1.0-dev
VukW Apr 17, 2024
394d412
minor fixes
VukW Apr 17, 2024
95c3220
codacy & test fixes
VukW Apr 17, 2024
20efd3c
Fixed mlcube examples
VukW Apr 19, 2024
d379b8e
fixed model_dir in mlcube ci test
VukW Apr 19, 2024
f13d450
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Apr 19, 2024
5a68b0b
minor typo
scap3yvt Apr 19, 2024
8644e7e
renamed
scap3yvt Apr 19, 2024
2c6e43d
using `output_dir`
scap3yvt Apr 19, 2024
cee4348
Fix mlcube test
VukW Apr 22, 2024
e674f47
"fix" mlcube ci test
VukW Apr 22, 2024
813bf45
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__849-stan…
sarthakpati Apr 22, 2024
9989534
fixed the variables for old ways and test
scap3yvt Apr 23, 2024
807f8b5
ensure tests are invoked for all PRs
sarthakpati Apr 23, 2024
8efb957
checking if this fixes the test
sarthakpati Apr 24, 2024
690c9e9
Merge pull request #855 from mlcommons/new-apis_v0.1.0-dev_trigger_tests
sarthakpati Apr 24, 2024
cd7319d
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__849-stan…
sarthakpati Apr 24, 2024
efee8eb
update requirements
scap3yvt Apr 24, 2024
af1aed9
updated for cpu
scap3yvt Apr 24, 2024
9e10612
updated for cpu
scap3yvt Apr 24, 2024
9978608
updated for cuda 11.8
scap3yvt Apr 24, 2024
61959cc
updated for cuda 12.1
scap3yvt Apr 24, 2024
5ea23cf
updated for rocm
scap3yvt Apr 24, 2024
2ed393d
Merge pull request #857 from mlcommons/new-apis_v0.1.0-dev_pytorch221
sarthakpati Apr 24, 2024
fda8c6d
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__849-stan…
sarthakpati Apr 24, 2024
0907e4a
Merge pull request #853 from mlcommons/new-apis_v0.1.0-dev__849-stand…
VukW Apr 25, 2024
fd683e0
Merge remote-tracking branch 'origin/master' into new-apis_v0.1.0-dev
VukW Apr 28, 2024
3b5cbd6
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati May 1, 2024
27c7501
added information with tests
sarthakpati May 17, 2024
198bfbd
create the file dynunet and create the wrapper class
benmalef May 20, 2024
edbcad1
create the forward method
benmalef May 20, 2024
34b44b5
add dynunet's identifier in global_model_dict
benmalef May 20, 2024
a4cb6b2
make some code changes
benmalef May 20, 2024
d7b0850
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati May 20, 2024
b0776d9
add docker-compose file
benmalef May 21, 2024
f5d9316
create a dynunet example for demo
benmalef May 21, 2024
5df9810
defining the default parameters in dynunet model
benmalef May 21, 2024
5a25ebc
make some code changes
benmalef May 24, 2024
95b63ff
fix test_full error
benmalef May 24, 2024
bd99429
changes that made by black formatter
benmalef May 24, 2024
fe7f290
Merge branch 'mlcommons:master' into add_dynunet_model
benmalef May 24, 2024
2e64d2a
Merge branch 'new-apis_v0.1.0-dev' into add_dynunet_model
benmalef May 24, 2024
d016ddb
change the model name to dynunet_wrapper
benmalef May 24, 2024
033ee0f
delete the dynunet file
benmalef May 24, 2024
3a9e78f
added nadam optimizer
pranayasinghcsmpl May 27, 2024
1ac8afa
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati May 28, 2024
474d09b
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev
sarthakpati May 28, 2024
85cbfca
Merge branch 'new-apis_v0.1.0-dev' into add_dynunet_model
sarthakpati May 29, 2024
1591b6d
delete docker compose
benmalef May 30, 2024
8e77a9c
updated black linting
pranayasinghcsmpl May 31, 2024
450cd41
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati May 31, 2024
fea786c
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev
sarthakpati May 31, 2024
abcb439
remove unnecessary comments
benmalef May 31, 2024
ddfeebb
black the __init__ model
benmalef May 31, 2024
c1909f7
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati May 31, 2024
5ae6aa3
changed test_full and config_segmentation
benmalef Jun 1, 2024
86eb2c5
changed the dynunet defaults parameters
benmalef Jun 1, 2024
974c6b1
Formatting missing files
szmazurek Jun 1, 2024
0252b01
changed the config_segmentation and test_full
benmalef Jun 1, 2024
dec2b3b
black test_full
benmalef Jun 1, 2024
86e4188
fix test_full dynunet model error "kernel_size"
benmalef Jun 1, 2024
3af040c
black test_full
benmalef Jun 1, 2024
6d77337
Merge branch 'new-apis_v0.1.0-dev' into add_dynunet_model
benmalef Jun 1, 2024
b643e58
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev
Geeks-Sid Jun 3, 2024
0018a3c
Merge pull request #874 from pranayasinghcsmpl/new-apis_v0.1.0-dev
sarthakpati Jun 4, 2024
d77cc8a
remove unnecessary comments
benmalef Jun 4, 2024
1dda4ed
made the proposed changes
benmalef Jun 5, 2024
826b80c
remove unnecessary if statements from dynunet model
benmalef Jun 5, 2024
4f460e1
Merge branch 'new-apis_v0.1.0-dev' into add_dynunet_model
sarthakpati Jun 5, 2024
c331503
typos removed
scap3yvt Jun 6, 2024
83795aa
Merge pull request #882 from mlcommons/typos_removed_for_cli_descript…
sarthakpati Jun 6, 2024
48abb3e
Merge branch 'new-apis_v0.1.0-dev' into add_dynunet_model
sarthakpati Jun 6, 2024
1692429
enabling auroc but with guardrails
sarthakpati Jun 17, 2024
7e82e05
added mcc, again, with guardrails
sarthakpati Jun 17, 2024
ef32808
updated safety logic for auroc
sarthakpati Jun 17, 2024
7fa7fb0
change to json
sarthakpati Jun 18, 2024
6a38171
Merge pull request #873 from benmalef/add_dynunet_model
sarthakpati Jun 18, 2024
780bb46
lint
sarthakpati Jun 18, 2024
f3c541f
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__brats-pa…
sarthakpati Jun 20, 2024
14f8446
change the pip_version to 24.0 because of an error
benmalef Jun 27, 2024
b87c431
change the pip_version in python_test
benmalef Jun 27, 2024
12ac1b4
Merge pull request #887 from benmalef/change_pip_version_in_workflows
Geeks-Sid Jun 27, 2024
5697367
Adding function to get augmentation transforms
szmazurek Jun 28, 2024
73ca696
Update classification.py
sarthakpati Jun 28, 2024
8a5310a
updated to use torchmetrics, and added a generic calculators interfac…
sarthakpati Jun 28, 2024
f42b873
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__brats-pa…
sarthakpati Jun 28, 2024
75fd57b
Merge branch 'new-apis_v0.1.0-dev' into feature/augmentations_getter
sarthakpati Jun 28, 2024
b203928
Merge pull request #889 from mlcommons/feature/augmentations_getter
szmazurek Jun 29, 2024
dcc40c7
Cleaning setup
VukW Jun 29, 2024
e3cec4f
Merge branch 'new-apis_v0.1.0-dev' into setup-clean
sarthakpati Jun 29, 2024
b423f64
linter fix
VukW Jun 29, 2024
1d0151d
auroc fixed
sarthakpati Jul 1, 2024
f9eabb6
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__brats-pa…
sarthakpati Jul 1, 2024
c312e24
Aug test fix
VukW Jul 1, 2024
6f2a973
Merge pull request #15 from VukW/setup-clean
sarthakpati Jul 1, 2024
1715c1d
Merge pull request #890 from VukW/setup-clean
VukW Jul 1, 2024
ed8ce2f
checking if this works
sarthakpati Jul 1, 2024
20241b1
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__brats-pa…
sarthakpati Jul 1, 2024
7a7fa1f
Merge branch 'new-apis_v0.1.0-dev__brats-path_metrics' of https://git…
sarthakpati Jul 1, 2024
3bf4604
updated to `eval`
sarthakpati Jul 2, 2024
fe75f9c
add logging implementation
benmalef Jul 2, 2024
08550d6
update utils.__init__
benmalef Jul 2, 2024
ea42f95
change logging_config
benmalef Jul 2, 2024
f54641c
change logging_config
benmalef Jul 2, 2024
10dee45
change logging_config
benmalef Jul 2, 2024
e0aa707
blacked gandlf_logger
benmalef Jul 2, 2024
d5493f1
add gandlf_setup in the entrypoints
benmalef Jul 2, 2024
0d1ec65
blacked gandlf_logger
benmalef Jul 2, 2024
8ee6308
blacked some files
benmalef Jul 2, 2024
04fee16
blacked forward_pass
benmalef Jul 2, 2024
b5203cf
add logging testing
benmalef Jul 3, 2024
06c9d80
update test_full
benmalef Jul 3, 2024
b29e4ef
Merge pull request #8 from benmalef/add_test_logging
benmalef Jul 3, 2024
abddbd7
black test_full
benmalef Jul 3, 2024
c25396c
add logging test in test_full
benmalef Jul 3, 2024
bd9ba0d
remove unnecessary imports
benmalef Jul 3, 2024
57f02c9
black forward_pass
benmalef Jul 3, 2024
78af3fa
Merge pull request #9 from benmalef/add_logging_test
benmalef Jul 3, 2024
f1a3dfc
change the logging test name
benmalef Jul 3, 2024
7d6f25e
Add logging documentation (#10)
benmalef Jul 4, 2024
a2b834d
change the log format
benmalef Jul 4, 2024
fd434b2
Update docs/extending.md
benmalef Jul 8, 2024
783cbad
Update docs/extending.md
benmalef Jul 8, 2024
8736c11
Update docs/extending.md
benmalef Jul 8, 2024
8efe7f1
added output_dir for model optimization
scap3yvt Jul 9, 2024
3ef425c
added logic to take the output_path directly
scap3yvt Jul 9, 2024
40b0cdb
updated cli
scap3yvt Jul 9, 2024
91bd48d
fixed pip version for all ci
sarthakpati Jul 9, 2024
b348bb3
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev__brats-pa…
sarthakpati Jul 10, 2024
df378db
Merge pull request #885 from sarthakpati/new-apis_v0.1.0-dev__brats-p…
Geeks-Sid Jul 10, 2024
7deb9b4
added test for output-path
scap3yvt Jul 10, 2024
8bf7af8
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev_optmize-m…
scap3yvt Jul 10, 2024
0d887cd
pass `outputDir` separately
scap3yvt Jul 10, 2024
4d74888
lint
scap3yvt Jul 10, 2024
4ce39d2
syntax fixed
scap3yvt Jul 10, 2024
5853763
fixed check for params
scap3yvt Jul 11, 2024
cf52d95
ensure a comma-separated file can be ingested by metrics
scap3yvt Jul 11, 2024
126647a
this check breaks comma-separation
scap3yvt Jul 11, 2024
1b0ea76
tests updated
scap3yvt Jul 11, 2024
d11c769
tests updated
scap3yvt Jul 11, 2024
6d6d402
tests updated
scap3yvt Jul 11, 2024
d32e237
tests should pass
scap3yvt Jul 11, 2024
22ee9bd
fixed mask header for synthesis
scap3yvt Jul 11, 2024
fd2b923
allow a non-required column to be checked (useful for masks)
scap3yvt Jul 11, 2024
b243043
corrected type
scap3yvt Jul 11, 2024
7e0f91c
tests updated for new cli option
scap3yvt Jul 11, 2024
20bb51b
tests updated for new cli option
scap3yvt Jul 11, 2024
1918e0c
added a `missing_prediction` option
sarthakpati Jul 12, 2024
4b2c8a2
added tests
sarthakpati Jul 12, 2024
367a55c
updated missing params for test
scap3yvt Jul 12, 2024
0681982
Update GANDLF/entrypoints/generate_metrics.py
scap3yvt Jul 12, 2024
7adea7b
Update GANDLF/entrypoints/generate_metrics.py
scap3yvt Jul 12, 2024
5832c03
fixed invocation
scap3yvt Jul 12, 2024
3e02cec
Merge pull request #900 from mlcommons/new-apis_v0.1.0-dev_metrics_su…
sarthakpati Jul 12, 2024
cf740e8
Merge branch 'new-apis_v0.1.0-dev' into add_logging_final_version
sarthakpati Jul 12, 2024
2c61453
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Jul 13, 2024
18921a9
Merge branch 'new-apis_v0.1.0-dev' into add_logging_final_version
sarthakpati Jul 13, 2024
52b2766
fixed tests
scap3yvt Jul 13, 2024
79be7b6
Merge branch 'new-apis_v0.1.0-dev' into new-apis_v0.1.0-dev_optmize-m…
scap3yvt Jul 13, 2024
f125e2d
Merge pull request #896 from mlcommons/new-apis_v0.1.0-dev_optmize-mo…
sarthakpati Jul 13, 2024
ba795fe
Merge branch 'new-apis_v0.1.0-dev' into add_logging_final_version
sarthakpati Jul 13, 2024
935d4a3
update gandlf_logger
benmalef Jul 15, 2024
af46472
remove unnecessary imports
benmalef Jul 15, 2024
36da4d2
update gandlf_logger_setup
benmalef Jul 18, 2024
d357fff
Update GANDLF/utils/gandlf_logger.py
benmalef Jul 18, 2024
3051b4b
Update GANDLF/utils/gandlf_logger.py
benmalef Jul 18, 2024
0374290
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Jul 19, 2024
ca076df
change the default to create a tmp file
benmalef Jul 19, 2024
730b158
missing syntax fixed
sarthakpati Jul 19, 2024
50668b9
Merge branch 'new-apis_v0.1.0-dev' into add_logging_final_version
sarthakpati Jul 19, 2024
e129be1
fix the error
benmalef Jul 19, 2024
05fa733
Update GANDLF/utils/gandlf_logger.py
benmalef Jul 19, 2024
e5bfd23
made proposed changes
benmalef Jul 19, 2024
f857e65
Update setup.py
benmalef Jul 19, 2024
20d3997
fixing typos
sarthakpati Jul 19, 2024
b5e57aa
ensure target type is `long` for precision or recall
sarthakpati Jul 19, 2024
2b97fec
apparently the error was for auroc and not others
sarthakpati Jul 19, 2024
b6dfe2d
removed unused import
sarthakpati Jul 19, 2024
ca64876
Merge branch 'new-apis_v0.1.0-dev' into add_logging_final_version
sarthakpati Jul 19, 2024
f425289
change the def name to logger_setup
benmalef Jul 20, 2024
1364c22
made some code changes
benmalef Jul 23, 2024
e36f274
Merge pull request #893 from benmalef/add_logging_final_version
sarthakpati Jul 24, 2024
ad20cd9
linter / codacy fix: remove unused import
VukW Jul 24, 2024
37042c5
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Jul 25, 2024
c167a61
Adding proper parameter usage in the class constructor
szmazurek Jul 26, 2024
0295868
Update GANDLF/entrypoints/preprocess.py
sarthakpati Jul 26, 2024
1ad4110
addressed comments
sarthakpati Jul 26, 2024
4367353
fixed lint
sarthakpati Jul 26, 2024
068dde7
Modifying tests accordingly
szmazurek Jul 26, 2024
3781bb0
Black formatting
szmazurek Jul 26, 2024
ccd6ea1
revert and use `ast`
sarthakpati Jul 26, 2024
bb6d51a
`sys.exit` --> `logging.error` and added assertions
sarthakpati Jul 26, 2024
02d39b1
automatic gandlf installation removed
sarthakpati Jul 27, 2024
aa4433a
added `detach().clone()` to prevent in-place replacement
sarthakpati Jul 27, 2024
965821e
Merge pull request #908 from mlcommons/bugfix/rescaler_fix
szmazurek Jul 27, 2024
bfe3a31
assert check for dims consolidated in `modelBase`
sarthakpati Jul 28, 2024
6b05b55
added assert
sarthakpati Jul 28, 2024
a05a550
removed `import sys`
sarthakpati Jul 28, 2024
b972f96
added `import logging`
sarthakpati Jul 28, 2024
3c27df9
logging.error -> assert
sarthakpati Jul 29, 2024
af686a4
fix codacy errors
sarthakpati Jul 29, 2024
82cc0ec
Merge branch 'master' into new-apis_v0.1.0-dev
sarthakpati Jul 29, 2024
7659089
lint
sarthakpati Jul 29, 2024
23c5ec2
logic updated to ensure thresholdOrClip check happens correctly with …
sarthakpati Jul 29, 2024
5652542
logging.error -> logging.info
sarthakpati Jul 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/onCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pip install wheel
pip install openvino-dev==2023.0.1 # [OPTIONAL] to generate optimized models for inference
pip install mlcube_docker # [OPTIONAL] to deploy GaNDLF models as MLCube-compliant Docker containers
pip install medmnist==2.1.0
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cpu
4 changes: 2 additions & 2 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
# if runnning on a GPU machine, install the GPU version of pytorch
if command -v nvidia-smi &> /dev/null
then
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cu118
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cu118
fi

pip install -e .
python ./gandlf_verifyInstall
gandlf verify-install
gzip -dk -r tutorials/classification_medmnist_notebook/medmnist/dataset
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/---bug-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If applicable, add images, screenshots or other relevant media to help explain y

### Environment information
<!-- Put the output of the following command:
python ./gandlf_debugInfo
gandlf debug-info
-->
GaNDLF version, OS, and any other relevant information.

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/--questions-help-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ https://mlcommons.github.io/GaNDLF/faq

### Environment information
<!-- Put the output of the following command:
python ./gandlf_debugInfo
gandlf debug-info
-->
GaNDLF version, OS, and any other relevant information.

Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ name: Codacy Security Scan
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
pull_request: {}

permissions:
contents: read
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ name: "CodeQL"
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
pull_request: {}
schedule:
- cron: '25 5 * * 2'

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/devcontainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Dev-Container CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
pull_request: {}

jobs:
dev-container-test:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ on:
push:
branches: [ master ]
tags: [ '*.*.*' ]
pull_request:
branches: [ master ]
pull_request: {}
workflow_dispatch:
inputs:
versionTag:
Expand Down
115 changes: 56 additions & 59 deletions .github/workflows/mlcube-test.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,36 @@
# This workflow will test gandlf_deploy for model and metrics MLCubes
# This workflow will test gandlf deploy for model and metrics MLCubes

name: MLCube-Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

branches: [master]
pull_request: {}

jobs:
test-deploy:

runs-on: ubuntu-latest

steps:
- name: Free space
run: |
df -h
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$ANDROID_SDK_ROOT"
df -h
- name: Checkout
uses: actions/checkout@v3
# Use changed-files-specific action to collect file changes.
# The following commented condition applied to a step will run that step only if non-docs files have changed.
# It should be applied to all functionality-related steps.
# if: steps.changed-files-specific.outputs.only_modified == 'false'
- name: Detect and screen file changes
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
- name: Free space
run: |
df -h
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$ANDROID_SDK_ROOT"
df -h
- name: Checkout
uses: actions/checkout@v3

# Use changed-files-specific action to collect file changes.
# The following commented condition applied to a step will run that step only if non-docs files have changed.
# It should be applied to all functionality-related steps.
# if: steps.changed-files-specific.outputs.only_modified == 'false'
- name: Detect and screen file changes
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
files: |
.github/*.md
.github/ISSUE_TEMPLATE/*.md
Expand All @@ -46,37 +43,37 @@ jobs:
LICENSE
Dockerfile-*

- name: Summarize docs and non-docs modifications
run: |
echo "List of docs files that have changed: ${{ steps.changed-files-specific.outputs.all_modified_files }}"
echo "Changed non-docs files: ${{ steps.changed-files-specific.outputs.other_modified_files }}"
# This second step is unnecessary but highly recommended because
# It will cache database and saves time re-downloading it if database isn't stale.
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.9
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and package
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sudo apt-get update
sudo apt-get install libvips libvips-tools -y
python -m pip install --upgrade pip==24.0
python -m pip install wheel
python -m pip install openvino-dev==2023.0.1 mlcube_docker
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
pip install -e .
- name: Run mlcube deploy tests
working-directory: ./testing
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sh test_deploy.sh
- name: Summarize docs and non-docs modifications
run: |
echo "List of docs files that have changed: ${{ steps.changed-files-specific.outputs.all_modified_files }}"
echo "Changed non-docs files: ${{ steps.changed-files-specific.outputs.other_modified_files }}"

# This second step is unnecessary but highly recommended because
# It will cache database and saves time re-downloading it if database isn't stale.
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.9
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and package
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sudo apt-get update
sudo apt-get install libvips libvips-tools -y
python -m pip install --upgrade pip==24.0
python -m pip install wheel
python -m pip install openvino-dev==2023.0.1 mlcube_docker
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cpu
pip install -e .
- name: Run mlcube deploy tests
working-directory: ./testing
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sh test_deploy.sh
158 changes: 78 additions & 80 deletions .github/workflows/openfl-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,33 @@ name: OpenFL-Test

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

branches: [master]
pull_request: {}

jobs:
openfl-test:

runs-on: ubuntu-latest

steps:
- name: Free space
run: |
df -h
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$ANDROID_SDK_ROOT"
df -h
- name: Checkout
uses: actions/checkout@v3
# Use changed-files-specific action to collect file changes.
# The following commented condition applied to a step will run that step only if non-docs files have changed.
# It should be applied to all functionality-related steps.
# if: steps.changed-files-specific.outputs.only_modified == 'false'
- name: Detect and screen file changes
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
- name: Free space
run: |
df -h
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
sudo rm -rf "$ANDROID_SDK_ROOT"
df -h
- name: Checkout
uses: actions/checkout@v3

# Use changed-files-specific action to collect file changes.
# The following commented condition applied to a step will run that step only if non-docs files have changed.
# It should be applied to all functionality-related steps.
# if: steps.changed-files-specific.outputs.only_modified == 'false'
- name: Detect and screen file changes
id: changed-files-specific
uses: tj-actions/changed-files@v41
with:
files: |
.github/*.md
.github/ISSUE_TEMPLATE/*.md
Expand All @@ -47,59 +44,60 @@ jobs:
LICENSE
Dockerfile-*

- name: Summarize docs and non-docs modifications
run: |
echo "List of docs files that have changed: ${{ steps.changed-files-specific.outputs.all_modified_files }}"
echo "Changed non-docs files: ${{ steps.changed-files-specific.outputs.other_modified_files }}"

# This second step is unnecessary but highly recommended because
# It will cache database and saves time re-downloading it if database isn't stale.
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.9
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and package
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sudo apt-get update
sudo apt-get install libvips libvips-tools -y
python -m pip install --upgrade pip==24.0
python -m pip install wheel
pip install torch==2.1.2 torchvision==0.16.2 torchaudio==2.1.2 --index-url https://download.pytorch.org/whl/cpu
pip install -e .
- name: Run generic unit tests to download data and construct CSVs
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
pytest --cov=. --cov-report=xml -k "prepare_data_for_ci"
# openfl tests start here
- name: Run OpenFL tests
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
echo "Removing onnx because of protobuf version conflict"
pip uninstall onnx -y
echo "Installing OpenFL"
git clone --depth=1 https://github.com/securefederatedai/openfl.git
cd openfl
git fetch --tags
# echo "Checkout the latest OpenFL tag"
# latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
# git checkout $latestTag
# sed -i -e 's/protobuf==3.19.6/protobuf/g' setup.py ## this should NOT be there
pip install -e .
cd ..
echo "Copying files to appropriate directories and updated headers"
head -n 1 testing/data/train_2d_rad_segmentation.csv > /home/runner/work/GaNDLF/GaNDLF/openfl/valid.csv
tail -n +9 testing/data/train_2d_rad_segmentation.csv >> /home/runner/work/GaNDLF/GaNDLF/openfl/valid.csv
head -n 8 testing/data/train_2d_rad_segmentation.csv > /home/runner/work/GaNDLF/GaNDLF/openfl/train.csv
sed -i 's/# n_channels: 3/num_channels: 3/g' testing/config_segmentation.yaml
config_to_use=$(pwd)/testing/config_segmentation.yaml
cd openfl
python -m tests.github.test_gandlf --template gandlf_seg_test --fed_workspace aggregator --col1 one --col2 two --rounds-to-train 1 --gandlf_config $config_to_use
- name: Summarize docs and non-docs modifications
run: |
echo "List of docs files that have changed: ${{ steps.changed-files-specific.outputs.all_modified_files }}"
echo "Changed non-docs files: ${{ steps.changed-files-specific.outputs.other_modified_files }}"

# This second step is unnecessary but highly recommended because
# It will cache database and saves time re-downloading it if database isn't stale.
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Set up Python 3.9
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies and package
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
sudo apt-get update
sudo apt-get install libvips libvips-tools -y
python -m pip install --upgrade pip==24.0
python -m pip install wheel
pip install torch==2.2.1 torchvision==0.17.1 torchaudio==2.2.1 --index-url https://download.pytorch.org/whl/cpu
pip install -e .
- name: Run generic unit tests to download data and construct CSVs
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
pytest --cov=. --cov-report=xml -k "prepare_data_for_ci"
# openfl tests start here
- name: Run OpenFL tests
if: steps.changed-files-specific.outputs.only_modified == 'false' # Run on any non-docs change
run: |
echo "Removing onnx because of protobuf version conflict"
pip uninstall onnx -y
echo "Installing OpenFL"
git clone --depth=1 https://github.com/securefederatedai/openfl.git
cd openfl
git fetch --tags
# echo "Checkout the latest OpenFL tag"
# latestTag=$(git describe --tags "$(git rev-list --tags --max-count=1)")
# git checkout $latestTag
# sed -i -e 's/protobuf==3.19.6/protobuf/g' setup.py ## this should NOT be there
pip install -e .
cd ..
echo "Copying files to appropriate directories and updated headers"
head -n 1 testing/data/train_2d_rad_segmentation.csv > /home/runner/work/GaNDLF/GaNDLF/openfl/valid.csv
tail -n +9 testing/data/train_2d_rad_segmentation.csv >> /home/runner/work/GaNDLF/GaNDLF/openfl/valid.csv
head -n 8 testing/data/train_2d_rad_segmentation.csv > /home/runner/work/GaNDLF/GaNDLF/openfl/train.csv
sed -i 's/# n_channels: 3/num_channels: 3/g' testing/config_segmentation.yaml
config_to_use=$(pwd)/testing/config_segmentation.yaml
cd openfl
python -m tests.github.test_gandlf --template gandlf_seg_test --fed_workspace aggregator --col1 one --col2 two --rounds-to-train 1 --gandlf_config $config_to_use

4 changes: 1 addition & 3 deletions .github/workflows/ossar-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ name: OSSAR
on:
push:
branches: [ master ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ master ]
pull_request: {}
schedule:
- cron: '32 20 * * 3'

Expand Down
Loading
Loading