Application Program Interface (API)

Data Manipulation

bob.med.tb.data.dataset

bob.med.tb.data.loader

Data loading code

bob.med.tb.data.sample

bob.med.tb.data.utils

Common utilities

bob.med.tb.data.transforms

Image transformations for our pipelines

Datasets

bob.med.tb.data.montgomery

Montgomery dataset for computer-aided diagnosis

bob.med.tb.data.montgomery_RS

Extended Montgomery dataset for computer-aided diagnosis (extended with DensenetRS predictions)

bob.med.tb.data.shenzhen

Shenzhen dataset for computer-aided diagnosis

bob.med.tb.data.shenzhen_RS

Shenzhen dataset for computer-aided diagnosis (extended with DensenetRS predictions)

bob.med.tb.data.indian

Indian collection dataset for computer-aided diagnosis

bob.med.tb.data.indian_RS

Indian collection dataset for computer-aided diagnosis (extended with DensenetRS predictions)

bob.med.tb.data.nih_cxr14_re

NIH CXR14 (relabeled) dataset for computer-aided diagnosis

bob.med.tb.data.padchest

Padchest dataset for computer-aided diagnosis

bob.med.tb.data.padchest_RS

Padchest TB dataset for computer-aided diagnosis

bob.med.tb.data.hivtb

HIV-TB dataset for computer-aided diagnosis (only BMP files)

bob.med.tb.data.hivtb_RS

HIV-TB dataset for computer-aided diagnosis (only BMP files)

bob.med.tb.data.tbpoc

TB-POC dataset for computer-aided diagnosis

bob.med.tb.data.tbpoc_RS

TB-POC dataset for computer-aided diagnosis

Engines

bob.med.tb.engine

bob.med.tb.engine.trainer

bob.med.tb.engine.predictor

bob.med.tb.engine.evaluator

Defines functionality for the evaluation of predictions

Neural Network Models

bob.med.tb.models

bob.med.tb.models.normalizer

A network model that prefixes a z-normalization step to any other module

bob.med.tb.models.alexnet

bob.med.tb.models.densenet

bob.med.tb.models.densenet_rs

bob.med.tb.models.pasa

bob.med.tb.models.signs_to_tb

bob.med.tb.models.logistic_regression

Toolbox

bob.med.tb.utils

bob.med.tb.utils.checkpointer

bob.med.tb.utils.grad_cams

bob.med.tb.utils.measure

bob.med.tb.utils.resources

Tools for interacting with the running computer or GPU

bob.med.tb.utils.summary

Preset Configurations

Preset configurations for baseline systems

This module contains preset configurations for baseline FCN architectures and datasets.

Models

bob.med.tb.configs.models.pasa

CNN for Tuberculosis Detection

bob.med.tb.configs.models.alexnet

AlexNet

bob.med.tb.configs.models.alexnet_pretrained

AlexNet

bob.med.tb.configs.models.densenet

DenseNet

bob.med.tb.configs.models.densenet_pretrained

DenseNet

bob.med.tb.configs.models.signs_to_tb

Feedforward network for Tuberculosis Detection

bob.med.tb.configs.models.logistic_regression

Feedforward network for Tuberculosis Detection

bob.med.tb.configs.models_datasets.densenet_rs

CNN for radiological findings detection

Datasets

bob.med.tb.configs.datasets.RANDOM_ROTATION = [RandomRotation(degrees=[-15.0, 15.0], interpolation=nearest, expand=False, fill=0)]

Shared data augmentation based on random rotation only

bob.med.tb.configs.datasets.make_subset(l, transforms=[], prefixes=[], suffixes=[])[source]

Creates a new data set, applying transforms

Note

This is a convenience function for our own dataset definitions inside this module, guaranteeting homogenity between dataset definitions provided in this package. It assumes certain strategies for data augmentation that may not be translatable to other applications.

Parameters
  • l (list) – List of delayed samples

  • transforms (list) – A list of transforms that needs to be applied to all samples in the set

  • prefixes (list) – A list of data augmentation operations that needs to be applied before the transforms above

  • suffixes (list) – A list of data augmentation operations that needs to be applied after the transforms above

Returns

subset – A pre-formatted dataset that can be fed to one of our engines

Return type

bob.med.tb.data.utils.SampleListDataset

bob.med.tb.configs.datasets.make_dataset(subsets_groups, transforms=[], t_transforms=[], post_transforms=[])[source]

Creates a new configuration dataset from a list of dictionaries and transforms

This function takes as input a list of dictionaries as those that can be returned by bob.med.tb.data.dataset.JSONDataset.subsets() mapping protocol names (such as train, dev and test) to bob.med.tb.data.sample.DelayedSample lists, and a set of transforms, and returns a dictionary applying bob.med.tb.data.utils.SampleListDataset to these lists, and our standard data augmentation if a train set exists.

For example, if subsets is composed of two sets named train and test, this function will yield a dictionary with the following entries:

  • __train__: Wraps the train subset, includes data augmentation (note: datasets with names starting with _ (underscore) are excluded from prediction and evaluation by default, as they contain data augmentation transformations.)

  • train: Wraps the train subset, without data augmentation

  • test: Wraps the test subset, without data augmentation

Note

This is a convenience function for our own dataset definitions inside this module, guaranteeting homogenity between dataset definitions provided in this package. It assumes certain strategies for data augmentation that may not be translatable to other applications.

Parameters
  • subsets (list) – A list of dictionaries that contains the delayed sample lists for a number of named lists. The subsets will be aggregated in one final subset. If one of the keys is train, our standard dataset augmentation transforms are appended to the definition of that subset. All other subsets remain un-augmented.

  • transforms (list) – A list of transforms that needs to be applied to all samples in the set

  • t_transforms (list) – A list of transforms that needs to be applied to the train samples

  • post_transforms (list) – A list of transforms that needs to be applied to all samples in the set after all the other transforms

Returns

dataset – A pre-formatted dataset that can be fed to one of our engines. It maps string names to bob.med.tb.data.utils.SampleListDataset’s.

Return type

dict

bob.med.tb.configs.datasets.get_samples_weights(dataset)[source]

Compute the weights of all the samples of the dataset to balance it using the sampler of the dataloader

This function takes as input a torch.utils.data.dataset.Dataset and computes the weights to balance each class in the dataset and the datasets themselves if we have a ConcatDataset.

Parameters

dataset (torch.utils.data.dataset.Dataset) – An instance of torch.utils.data.dataset.Dataset ConcatDataset are supported

Returns

samples_weights – the weights for all the samples in the dataset given as input

Return type

torch.Tensor

bob.med.tb.configs.datasets.get_positive_weights(dataset)[source]

Compute the positive weights of each class of the dataset to balance the BCEWithLogitsLoss criterion

This function takes as input a torch.utils.data.dataset.Dataset and computes the positive weights of each class to use them to have a balanced loss.

Parameters

dataset (torch.utils.data.dataset.Dataset) – An instance of torch.utils.data.dataset.Dataset ConcatDataset are supported

Returns

positive_weights – the positive weight of each class in the dataset given as input

Return type

torch.Tensor

bob.med.tb.configs.datasets.hivtb.fold_0

HIV-TB dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.hivtb.fold_0_rgb

HIV-TB dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.hivtb.fold_1

HIV-TB dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.hivtb.fold_1_rgb

HIV-TB dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.hivtb.fold_2

HIV-TB dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.hivtb.fold_2_rgb

HIV-TB dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.hivtb.fold_3

HIV-TB dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.hivtb.fold_3_rgb

HIV-TB dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.hivtb.fold_4

HIV-TB dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.hivtb.fold_4_rgb

HIV-TB dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.hivtb.fold_5

HIV-TB dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.hivtb.fold_5_rgb

HIV-TB dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.hivtb.fold_6

HIV-TB dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.hivtb.fold_6_rgb

HIV-TB dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.hivtb.fold_7

HIV-TB dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.hivtb.fold_7_rgb

HIV-TB dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.hivtb.fold_8

HIV-TB dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.hivtb.fold_8_rgb

HIV-TB dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.hivtb.fold_9

HIV-TB dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.hivtb.fold_9_rgb

HIV-TB dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.hivtb_RS.fold_0

HIV-TB dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.hivtb_RS.fold_1

HIV-TB dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.hivtb_RS.fold_2

HIV-TB dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.hivtb_RS.fold_3

HIV-TB dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.hivtb_RS.fold_4

HIV-TB dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.hivtb_RS.fold_5

HIV-TB dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.hivtb_RS.fold_6

HIV-TB dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.hivtb_RS.fold_7

HIV-TB dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.hivtb_RS.fold_8

HIV-TB dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.hivtb_RS.fold_9

HIV-TB dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.indian.default

Indian dataset for TB detection (default protocol)

bob.med.tb.configs.datasets.indian.fold_0

Indian dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.indian.fold_0_rgb

Indian dataset for TB detection (cross validation fold 0, RGB)

bob.med.tb.configs.datasets.indian.fold_1

Indian dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.indian.fold_1_rgb

Indian dataset for TB detection (cross validation fold 1, RGB)

bob.med.tb.configs.datasets.indian.fold_2

Indian dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.indian.fold_2_rgb

Indian dataset for TB detection (cross validation fold 2, RGB)

bob.med.tb.configs.datasets.indian.fold_3

Indian dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.indian.fold_3_rgb

Indian dataset for TB detection (cross validation fold 3, RGB)

bob.med.tb.configs.datasets.indian.fold_4

Indian dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.indian.fold_4_rgb

Indian dataset for TB detection (cross validation fold 4, RGB)

bob.med.tb.configs.datasets.indian.fold_5

Indian dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.indian.fold_5_rgb

Indian dataset for TB detection (cross validation fold 5, RGB)

bob.med.tb.configs.datasets.indian.fold_6

Indian dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.indian.fold_6_rgb

Indian dataset for TB detection (cross validation fold 6, RGB)

bob.med.tb.configs.datasets.indian.fold_7

Indian dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.indian.fold_7_rgb

Indian dataset for TB detection (cross validation fold 7, RGB)

bob.med.tb.configs.datasets.indian.fold_8

Indian dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.indian.fold_8_rgb

Indian dataset for TB detection (cross validation fold 8, RGB)

bob.med.tb.configs.datasets.indian.fold_9

Indian dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.indian.fold_9_rgb

Indian dataset for TB detection (cross validation fold 9, RGB)

bob.med.tb.configs.datasets.indian.rgb

Indian dataset for TB detection (default protocol, converted in RGB)

bob.med.tb.configs.datasets.indian_RS.default

Indian dataset for TB detection (default protocol) (extended with DensenetRS predictions)

bob.med.tb.configs.datasets.indian_RS.fold_0

Indian dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.indian_RS.fold_1

Indian dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.indian_RS.fold_2

Indian dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.indian_RS.fold_3

Indian dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.indian_RS.fold_4

Indian dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.indian_RS.fold_5

Indian dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.indian_RS.fold_6

Indian dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.indian_RS.fold_7

Indian dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.indian_RS.fold_8

Indian dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.indian_RS.fold_9

Indian dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.mc_ch.default

Aggregated dataset composed of Montgomery and Shenzhen datasets

bob.med.tb.configs.datasets.mc_ch.fold_0

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 0)

bob.med.tb.configs.datasets.mc_ch.fold_0_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 0, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_1

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 1)

bob.med.tb.configs.datasets.mc_ch.fold_1_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 1, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_2

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 2)

bob.med.tb.configs.datasets.mc_ch.fold_2_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 2, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_3

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 3)

bob.med.tb.configs.datasets.mc_ch.fold_3_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 3, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_4

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 4)

bob.med.tb.configs.datasets.mc_ch.fold_4_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 4, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_5

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 5)

bob.med.tb.configs.datasets.mc_ch.fold_5_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 5, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_6

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 6)

bob.med.tb.configs.datasets.mc_ch.fold_6_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 6, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_7

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 7)

bob.med.tb.configs.datasets.mc_ch.fold_7_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 7, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_8

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 8)

bob.med.tb.configs.datasets.mc_ch.fold_8_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 8, RGB)

bob.med.tb.configs.datasets.mc_ch.fold_9

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 9)

bob.med.tb.configs.datasets.mc_ch.fold_9_rgb

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 9, RGB)

bob.med.tb.configs.datasets.mc_ch.rgb

Aggregated dataset composed of Montgomery and Shenzhen (RGB) datasets

bob.med.tb.configs.datasets.mc_ch_RS.default

Aggregated dataset composed of Montgomery and Shenzhen datasets

bob.med.tb.configs.datasets.mc_ch_RS.fold_0

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 0)

bob.med.tb.configs.datasets.mc_ch_RS.fold_1

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 1)

bob.med.tb.configs.datasets.mc_ch_RS.fold_2

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 2)

bob.med.tb.configs.datasets.mc_ch_RS.fold_3

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 3)

bob.med.tb.configs.datasets.mc_ch_RS.fold_4

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 4)

bob.med.tb.configs.datasets.mc_ch_RS.fold_5

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 5)

bob.med.tb.configs.datasets.mc_ch_RS.fold_6

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 6)

bob.med.tb.configs.datasets.mc_ch_RS.fold_7

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 7)

bob.med.tb.configs.datasets.mc_ch_RS.fold_8

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 8)

bob.med.tb.configs.datasets.mc_ch_RS.fold_9

Aggregated dataset composed of Montgomery and Shenzhen datasets (cross validation fold 9)

bob.med.tb.configs.datasets.mc_ch_in.default

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets

bob.med.tb.configs.datasets.mc_ch_in.fold_0

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 0)

bob.med.tb.configs.datasets.mc_ch_in.fold_0_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 0, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_1

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 1)

bob.med.tb.configs.datasets.mc_ch_in.fold_1_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 1, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_2

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 2)

bob.med.tb.configs.datasets.mc_ch_in.fold_2_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 2, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_3

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 3)

bob.med.tb.configs.datasets.mc_ch_in.fold_3_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 3, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_4

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 4)

bob.med.tb.configs.datasets.mc_ch_in.fold_4_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 4, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_5

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 5)

bob.med.tb.configs.datasets.mc_ch_in.fold_5_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 5, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_6

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 6)

bob.med.tb.configs.datasets.mc_ch_in.fold_6_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 6, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_7

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 7)

bob.med.tb.configs.datasets.mc_ch_in.fold_7_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 7, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_8

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 8)

bob.med.tb.configs.datasets.mc_ch_in.fold_8_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 8, RGB)

bob.med.tb.configs.datasets.mc_ch_in.fold_9

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 9)

bob.med.tb.configs.datasets.mc_ch_in.fold_9_rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 9, RGB)

bob.med.tb.configs.datasets.mc_ch_in.rgb

Aggregated dataset composed of Montgomery, Shenzhen and Indian (RGB) datasets

bob.med.tb.configs.datasets.mc_ch_in_RS.default

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_0

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 0)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_1

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 1)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_2

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 2)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_3

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 3)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_4

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 4)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_5

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 5)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_6

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 6)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_7

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 7)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_8

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 8)

bob.med.tb.configs.datasets.mc_ch_in_RS.fold_9

Aggregated dataset composed of Montgomery, Shenzhen and Indian datasets (cross validation fold 9)

bob.med.tb.configs.datasets.mc_ch_in_pc.default

Aggregated dataset composed of Montgomery, Shenzhen, Indian and Padchest datasets

bob.med.tb.configs.datasets.mc_ch_in_pc.rgb

Aggregated dataset composed of Montgomery, Shenzhen, Indian and Padchest (RGB) datasets

bob.med.tb.configs.datasets.mc_ch_in_pc_RS.default

Aggregated dataset composed of Montgomery, Shenzhen, Indian and PadChest (TB) datasets

bob.med.tb.configs.datasets.montgomery.default

Montgomery dataset for TB detection (default protocol)

bob.med.tb.configs.datasets.montgomery.fold_0

Montgomery dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.montgomery.fold_0_rgb

Montgomery dataset for TB detection (cross validation fold 0, RGB)

bob.med.tb.configs.datasets.montgomery.fold_1

Montgomery dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.montgomery.fold_1_rgb

Montgomery dataset for TB detection (cross validation fold 1, RGB)

bob.med.tb.configs.datasets.montgomery.fold_2

Montgomery dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.montgomery.fold_2_rgb

Montgomery dataset for TB detection (cross validation fold 2, RGB)

bob.med.tb.configs.datasets.montgomery.fold_3

Montgomery dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.montgomery.fold_3_rgb

Montgomery dataset for TB detection (cross validation fold 3, RGB)

bob.med.tb.configs.datasets.montgomery.fold_4

Montgomery dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.montgomery.fold_4_rgb

Montgomery dataset for TB detection (cross validation fold 4, RGB)

bob.med.tb.configs.datasets.montgomery.fold_5

Montgomery dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.montgomery.fold_5_rgb

Montgomery dataset for TB detection (cross validation fold 5, RGB)

bob.med.tb.configs.datasets.montgomery.fold_6

Montgomery dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.montgomery.fold_6_rgb

Montgomery dataset for TB detection (cross validation fold 6, RGB)

bob.med.tb.configs.datasets.montgomery.fold_7

Montgomery dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.montgomery.fold_7_rgb

Montgomery dataset for TB detection (cross validation fold 7, RGB)

bob.med.tb.configs.datasets.montgomery.fold_8

Montgomery dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.montgomery.fold_8_rgb

Montgomery dataset for TB detection (cross validation fold 8, RGB)

bob.med.tb.configs.datasets.montgomery.fold_9

Montgomery dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.montgomery.fold_9_rgb

Montgomery dataset for TB detection (cross validation fold 9, RGB)

bob.med.tb.configs.datasets.montgomery.rgb

Montgomery dataset for TB detection (default protocol, converted in RGB)

bob.med.tb.configs.datasets.montgomery_RS.default

Montgomery dataset for TB detection (default protocol) (extended with DensenetRS predictions)

bob.med.tb.configs.datasets.montgomery_RS.fold_0

Montgomery dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.montgomery_RS.fold_1

Montgomery dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.montgomery_RS.fold_2

Montgomery dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.montgomery_RS.fold_3

Montgomery dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.montgomery_RS.fold_4

Montgomery dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.montgomery_RS.fold_5

Montgomery dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.montgomery_RS.fold_6

Montgomery dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.montgomery_RS.fold_7

Montgomery dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.montgomery_RS.fold_8

Montgomery dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.montgomery_RS.fold_9

Montgomery dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.nih_cxr14_re.cardiomegaly_idiap

NIH CXR14 (relabeled, idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.nih_cxr14_re.default

NIH CXR14 (relabeled) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.nih_cxr14_re.idiap

NIH CXR14 (relabeled, idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.nih_cxr14_re_pc.idiap

Aggregated dataset composed of NIH CXR14 relabeld and PadChest (normalized) datasets

bob.med.tb.configs.datasets.padchest.cardiomegaly_idiap

Padchest cardiomegaly (idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.padchest.idiap

Padchest (idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.padchest.no_tb_idiap

Padchest tuberculosis (no TB idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.padchest.tb_idiap

Padchest tuberculosis (idiap protocol) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.padchest.tb_idiap_rgb

Padchest tuberculosis (idiap protocol, rgb) dataset for computer-aided diagnosis

bob.med.tb.configs.datasets.padchest_RS.tb_idiap

Extended Padchest TB dataset for TB detection (default protocol) (extended with DensenetRS predictions)

bob.med.tb.configs.datasets.shenzhen.default

Shenzhen dataset for TB detection (default protocol)

bob.med.tb.configs.datasets.shenzhen.fold_0

Shenzhen dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.shenzhen.fold_0_rgb

Shenzhen dataset for TB detection (cross validation fold 0, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_1

Shenzhen dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.shenzhen.fold_1_rgb

Shenzhen dataset for TB detection (cross validation fold 1, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_2

Shenzhen dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.shenzhen.fold_2_rgb

Shenzhen dataset for TB detection (cross validation fold 2, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_3

Shenzhen dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.shenzhen.fold_3_rgb

Shenzhen dataset for TB detection (cross validation fold 3, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_4

Shenzhen dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.shenzhen.fold_4_rgb

Shenzhen dataset for TB detection (cross validation fold 4, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_5

Shenzhen dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.shenzhen.fold_5_rgb

Shenzhen dataset for TB detection (cross validation fold 5, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_6

Shenzhen dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.shenzhen.fold_6_rgb

Shenzhen dataset for TB detection (cross validation fold 6, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_7

Shenzhen dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.shenzhen.fold_7_rgb

Shenzhen dataset for TB detection (cross validation fold 7, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_8

Shenzhen dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.shenzhen.fold_8_rgb

Shenzhen dataset for TB detection (cross validation fold 8, RGB)

bob.med.tb.configs.datasets.shenzhen.fold_9

Shenzhen dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.shenzhen.fold_9_rgb

Shenzhen dataset for TB detection (cross validation fold 9, RGB)

bob.med.tb.configs.datasets.shenzhen.rgb

Shenzhen dataset for TB detection (default protocol, converted in RGB)

bob.med.tb.configs.datasets.shenzhen_RS.default

Shenzhen dataset for TB detection (default protocol) (extended with DensenetRS predictions)

bob.med.tb.configs.datasets.shenzhen_RS.fold_0

Shenzhen dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.shenzhen_RS.fold_1

Shenzhen dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.shenzhen_RS.fold_2

Shenzhen dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.shenzhen_RS.fold_3

Shenzhen dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.shenzhen_RS.fold_4

Shenzhen dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.shenzhen_RS.fold_5

Shenzhen dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.shenzhen_RS.fold_6

Shenzhen dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.shenzhen_RS.fold_7

Shenzhen dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.shenzhen_RS.fold_8

Shenzhen dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.shenzhen_RS.fold_9

Shenzhen dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.tbpoc.fold_0

TB-POC dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.tbpoc.fold_0_rgb

TB-POC dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.tbpoc.fold_1

TB-POC dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.tbpoc.fold_1_rgb

TB-POC dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.tbpoc.fold_2

TB-POC dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.tbpoc.fold_2_rgb

TB-POC dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.tbpoc.fold_3

TB-POC dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.tbpoc.fold_3_rgb

TB-POC dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.tbpoc.fold_4

TB-POC dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.tbpoc.fold_4_rgb

TB-POC dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.tbpoc.fold_5

TB-POC dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.tbpoc.fold_5_rgb

TB-POC dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.tbpoc.fold_6

TB-POC dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.tbpoc.fold_6_rgb

TB-POC dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.tbpoc.fold_7

TB-POC dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.tbpoc.fold_7_rgb

TB-POC dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.tbpoc.fold_8

TB-POC dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.tbpoc.fold_8_rgb

TB-POC dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.tbpoc.fold_9

TB-POC dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.tbpoc.fold_9_rgb

TB-POC dataset for TB detection (cross validation fold 9)

bob.med.tb.configs.datasets.tbpoc_RS.fold_0

TB-POC dataset for TB detection (cross validation fold 0)

bob.med.tb.configs.datasets.tbpoc_RS.fold_1

TB-POC dataset for TB detection (cross validation fold 1)

bob.med.tb.configs.datasets.tbpoc_RS.fold_2

TB-POC dataset for TB detection (cross validation fold 2)

bob.med.tb.configs.datasets.tbpoc_RS.fold_3

TB-POC dataset for TB detection (cross validation fold 3)

bob.med.tb.configs.datasets.tbpoc_RS.fold_4

TB-POC dataset for TB detection (cross validation fold 4)

bob.med.tb.configs.datasets.tbpoc_RS.fold_5

TB-POC dataset for TB detection (cross validation fold 5)

bob.med.tb.configs.datasets.tbpoc_RS.fold_6

TB-POC dataset for TB detection (cross validation fold 6)

bob.med.tb.configs.datasets.tbpoc_RS.fold_7

TB-POC dataset for TB detection (cross validation fold 7)

bob.med.tb.configs.datasets.tbpoc_RS.fold_8

TB-POC dataset for TB detection (cross validation fold 8)

bob.med.tb.configs.datasets.tbpoc_RS.fold_9

TB-POC dataset for TB detection (cross validation fold 9)