MedVision / doc /dataset_toothfairy2.md
YongchengYAO
update: add doc
b580fa2

Preparing ToothFairy2 Data

MedVision is designed to download raw data from source and the annotations from our Huggingface dataset repo. For access to the raw data of the ToothFairy2 dataset, you need to register at https://ditto.ing.unimore.it/toothfairy2/.

This tutorial is about:

  • What data to download from the source in order to use the annotations from MedVision?
  • How to prepare data?

What data to download?

  • Download and extract data from source
# Files from ToothFairy2 source
β”œβ”€β”€ Dataset112_ToothFairy2
    β”œβ”€β”€ imagesTr
        β”œβ”€β”€ ToothFairy2F_001_0000.mha
        β”œβ”€β”€ ...
    β”œβ”€β”€ labelsTr
        β”œβ”€β”€ ToothFairy2F_001.mha
        β”œβ”€β”€ ...

How to prepare data?

⚠️ DO NOT change file or folder names. See why here.

  1. Put these folders into ToothFairy2 and upload the compressed file to your HF dataset repo

    # DO NOT use other folder names
    β”œβ”€β”€ ToothFairy2
        β”œβ”€β”€ imagesTr
        β”œβ”€β”€ labelsTr
    

    Your HF repo should contain ToothFairy2.zip

  2. Set env var whenever you load ToothFairy2 data from MedVision

    import os
    os.environ["MedVision_ToothFairy2_HF_ID"] = <your-hf-dataset-id>