-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from fraunhoferportugal/dev
Simplification of Metric Goals Categorization
- Loading branch information
Showing
36 changed files
with
183 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.1.1 | ||
0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
# https://github.com/microsoft/vscode-python/blob/master/CHANGELOG.md#enhancements-1 | ||
[tool.poetry] | ||
name = "pymdma" | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
description = "Multimodal Data Metrics for Auditing real and synthetic data" | ||
authors = ["Fraunhofer AICOS <[email protected]>"] | ||
maintainers = [ | ||
|
@@ -39,6 +39,8 @@ pot = {version = ">=0.9.4, <0.10.0"} | |
pydantic = {version = ">=2.8.2, <2.9.0"} | ||
python-dotenv = {version = ">=1.0.0, <2.0.0"} | ||
torch = {version = ">=2.1.0, <2.5.0"} | ||
gudhi = {version = ">=3.9.0, <=4.0.0"} | ||
scikit-learn = {version = ">1.4.0"} | ||
|
||
# Image dependencies | ||
pydom = {git = "https://github.com/umang-singhal/pydom.git", rev = "2554af8d0", optional = true} | ||
|
@@ -59,11 +61,9 @@ statsmodels = {version = ">=0.14.4, <0.15.0", optional = true} | |
# sentence-transformers = {version = "^2.2.2", optional = true} | ||
# python-multipart = {version = "0.0.6", optional = true} | ||
# Tabular Dependencies | ||
gudhi = {version = ">=3.9.0, <=4.0.0", optional = true} | ||
numba = {version = ">=0.60.0, <0.80.0", optional = true} | ||
pandas = {version = ">=2.0.0, <3.0.0", optional = true} | ||
pycanon = {version = "1.0.1.post2", optional = true} | ||
scikit-learn = {version = ">1.4.0", optional = true} | ||
scipy = {version = ">=1.6.0, <2.0.0", optional = true} | ||
spacy = {version = ">=3.7.4, <4.0.0", optional = true} | ||
transformers = {version = ">=4.43.2, <5.0.0", optional = true} | ||
|
@@ -73,12 +73,12 @@ word2number = {version = ">=1.1.0, <1.5.0", optional = true} | |
|
||
[tool.poetry.extras] | ||
image = ["pydom", "torchvision", "torchmetrics", "pycocotools", "opencv-python", "torch-fidelity"] | ||
tabular = ["gudhi", "numba", "pandas", "pycanon", "scikit-learn", "scipy", "spacy", "transformers", "umap-learn", "word2number", "statsmodels"] | ||
tabular = ["numba", "pandas", "pycanon", "scipy", "spacy", "transformers", "umap-learn", "word2number", "statsmodels"] | ||
time_series = ["tsfel", "wfdb", "statsmodels"] | ||
# text = ["accelerate", "datasets", "nltk", "sentence-transformers", "transformers", "python-multipart"] | ||
all = [ | ||
"pydom", "torchvision", "torchmetrics", "pycocotools", "opencv-python", "torch-fidelity", | ||
"gudhi", "numba", "pandas", "pycanon", "scikit-learn", "scipy", "spacy", "transformers", "umap-learn", "word2number", | ||
"numba", "pandas", "pycanon", "scipy", "spacy", "transformers", "umap-learn", "word2number", | ||
"tsfel", "wfdb", "statsmodels" | ||
# "accelerate", "datasets", "nltk", "sentence-transformers", "transformers", "python-multipart" | ||
] | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,22 @@ | ||
#!/bin/bash | ||
|
||
pymdma \ | ||
--modality image \ | ||
--validation_type input \ | ||
--reference_type none \ | ||
--evaluation_level instance \ | ||
--target_data data/test/image/input_val/dataset \ | ||
--reference_data data/test/image/input_val/reference \ | ||
--batch_size 3\ | ||
--output_dir reports/image_metrics/ \ | ||
--annotation_file data/test/image/input_val/annotations/COCO_annotation_example_mask_exp.json | ||
|
||
pymdma --modality image \ | ||
--validation_type synth \ | ||
--reference_type dataset \ | ||
--evaluation_level dataset \ | ||
--reference_data data/test/image/synthesis_val/reference \ | ||
--target_data data/test/image/synthesis_val/dataset \ | ||
--batch_size 3\ | ||
--metric_group feature \ | ||
--output_dir reports/image_metrics/ \ | ||
# --extractor_model_name inception_v3 | ||
|
||
# python3 src/main.py \ | ||
# --modality image \ | ||
# --validation_type input \ | ||
# --reference_type none \ | ||
# --evaluation_level instance \ | ||
# --target_data data/test/image/input_val/dataset \ | ||
# --reference_data data/test/image/input_val/reference \ | ||
# --batch_size 3\ | ||
# --output_dir reports/image_metrics/ \ | ||
# --metric_group quality \ | ||
# --annotation_file data/test/image/input_val/annotations/COCO_annotation_example_mask_exp.json | ||
# --extractor_model_name inception | ||
# --reference_data data/test/image/synthesis_val/reference \ | ||
pymdma \ | ||
--modality image \ | ||
--validation_type synth \ | ||
--reference_type dataset \ | ||
--evaluation_level dataset \ | ||
--target_data data/test/image/synthesis_val/dataset \ | ||
--reference_data data/test/image/synthesis_val/reference \ | ||
--batch_size 3\ | ||
--output_dir reports/image_metrics/ \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# pymdma --modality time_series \ | ||
# --validation_type synth \ | ||
# --evaluation_level dataset \ | ||
# --reference_type dataset \ | ||
# --target_data data/test/time_series/synthesis_val/dataset \ | ||
# --reference_data data/test/time_series/synthesis_val/reference \ | ||
# --batch_size 2\ | ||
# --output_dir reports/tabular_metrics/ \ | ||
# --metric_group feature | ||
pymdma --modality time_series \ | ||
--validation_type synth \ | ||
--evaluation_level dataset \ | ||
--reference_type dataset \ | ||
--target_data data/test/time_series/synthesis_val/dataset \ | ||
--reference_data data/test/time_series/synthesis_val/reference \ | ||
--batch_size 2\ | ||
--output_dir reports/tabular_metrics/ | ||
|
||
pymdma --modality time_series \ | ||
--validation_type input \ | ||
--evaluation_level instance \ | ||
--reference_type none \ | ||
--target_data data/test/time_series/input_val/dataset \ | ||
--output_dir reports/time_series/ \ | ||
--metric_group quality | ||
--output_dir reports/time_series/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.