Modified pretrained_models.yaml to contain model catalog information with description, primary site, and supported sites. - #1106
Modified pretrained_models.yaml to contain model catalog information with description, primary site, and supported sites.#1106mraoaakash wants to merge 10 commits into
pretrained_models.yaml to contain model catalog information with description, primary site, and supported sites.#1106Conversation
pretrained_models.yaml to contain model catalog information with description, primary site, and supported sites.
for more information, see https://pre-commit.ci
…atoolbox into pretrainedmodels
for more information, see https://pre-commit.ci
| @@ -1,5 +1,11 @@ | |||
| alexnet-kather100k: | |||
There was a problem hiding this comment.
Add class dictionary for the output for each channel from raw output in all cases.
| @@ -1,5 +1,11 @@ | |||
| alexnet-kather100k: | |||
| hf_repo_id: TIACentre/TIAToolbox_pretrained_weights | |||
There was a problem hiding this comment.
@gozdeg Please can you add information from https://github.com/TissueImageAnalytics/tiatoolbox-qupath-extension/blob/8d6e65085d84beb1f4e2f21adaeecc45f7447890/src/main/resources/qupath/ext/tiatoolbox/ui/models.json in this file.
| @@ -1,5 +1,11 @@ | |||
| alexnet-kather100k: | |||
| hf_repo_id: TIACentre/TIAToolbox_pretrained_weights | |||
| catalog: | |||
| num_output_channels: 5 | ||
| encoder: "resnet50" | ||
| decoder_block: [3, 3] | ||
| class_dict: {0: "Tumour", 1: "Stroma", 2: "Inflamatory", 3: "Necrosis", 4: "Others"} |
There was a problem hiding this comment.
We do not need to remove class_dict. Instead we should add these for the missing ones.
| @@ -0,0 +1,3 @@ | |||
| version = 1 | |||
| hf_repo_id: TIACentre/TIAToolbox_pretrained_weights | ||
| catalog: | ||
| description: > | ||
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. |
There was a problem hiding this comment.
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. | |
| Predict Normal, Debris, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. |
| hf_repo_id: TIACentre/TIAToolbox_pretrained_weights | ||
| catalog: | ||
| description: > | ||
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. |
There was a problem hiding this comment.
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. | |
| Predict Normal, Debris, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. |
| description: > | ||
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. | ||
| primary_site: colon | ||
| supported_sites: |
| catalog: | ||
| description: > | ||
| Predict Normal, Debri, Tumor, Adipose, Mucus, Smooth, Stroma, Lymphocytes regions at a patch level in colon images. | ||
| primary_site: colon |
There was a problem hiding this comment.
| primary_site: colon | |
| tissue_types: colon |
| @@ -1,5 +1,11 @@ | |||
| alexnet-kather100k: | |||
There was a problem hiding this comment.
At the top of the file, explain in comments what different fields mean in this file.
Partial PR for addition of pre-trained model documentation to the pretrained_model.yaml file. Includes the addition of a new filed called
catalogto each model yaml entry. The entry is structured in the following manner:catalog: description: > multi-line model description primary_site: primary site that model is supported for (agnostic for site-agnostic or multi-site models) supported_sites: - other - supported - sitesFields can be read nested and used for downstream filtering tasks as necessary.
NOTE: This is a partial PR and does not contain the complete set of catalog entries as it proved difficult to ascertain the required catalog entries for some models. Someone with more complete knowledge of some models would have to take up the completion of the remaining catalog entries.
Description, primary site, and supported sites:
Description only: