Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • medai/software/mednet
1 result
Show changes
Showing
with 27 additions and 23 deletions
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 1). validation fold 1).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 2). validation fold 2).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 3). validation fold 3).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 4). validation fold 4).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 5). validation fold 5).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 6). validation fold 6).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 7). validation fold 7).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 8). validation fold 8).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery and Shenzhen datasets (cross """Aggregated DataModule composed of Montgomery and Shenzhen datasets (cross
validation fold 9). validation fold 9).
See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen.datamodule.DataModule` for technical details.
......
# Copyright © 2022 Idiap Research Institute <contact@idiap.ch> # Copyright © 2022 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets."""
datasets."""
from ....data.datamodule import ConcatDataModule from ....data.datamodule import ConcatDataModule
from ..indian.datamodule import RawDataLoader as IndianLoader from ..indian.datamodule import RawDataLoader as IndianLoader
...@@ -14,8 +13,13 @@ from ..shenzhen.datamodule import make_split as make_shenzhen_split ...@@ -14,8 +13,13 @@ from ..shenzhen.datamodule import make_split as make_shenzhen_split
class DataModule(ConcatDataModule): class DataModule(ConcatDataModule):
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets.
datasets."""
Parameters
----------
split_filename
Name of the .json file containing the split to load.
"""
def __init__(self, split_filename: str): def __init__(self, split_filename: str):
montgomery_loader = MontgomeryLoader() montgomery_loader = MontgomeryLoader()
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets. """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets.
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
details. details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 0). (cross validation fold 0).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 1). (cross validation fold 1).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 2). (cross validation fold 2).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 3). (cross validation fold 3).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 4). (cross validation fold 4).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 5). (cross validation fold 5).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 6). (cross validation fold 6).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 7). (cross validation fold 7).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical details. See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical details.
......
# SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch> # SPDX-FileCopyrightText: Copyright © 2023 Idiap Research Institute <contact@idiap.ch>
# #
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
"""Aggregated datamodule composed of Montgomery, Shenzhen and Indian datasets """Aggregated DataModule composed of Montgomery, Shenzhen and Indian datasets
(cross validation fold 8). (cross validation fold 8).
See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical See :py:class:`.montgomery_shenzhen_indian.datamodule.DataModule` for technical
......