TIO-IKIM / CellViT

CellViT: Vision Transformers for Precise Cell Segmentation and Classification
https://doi.org/10.1016/j.media.2024.103143
Other
189 stars 27 forks source link

XML annotations support #44

Open thaomaidang opened 2 months ago

thaomaidang commented 2 months ago

Hello,

First of all, thank you for sharing this wonderful project. I am working with an .XML annotation from the CAMELYON dataset and would like to use the annotation function in your code. Currently, you only support JSON annotations, and you've mentioned that XML support will be added in the future (preprocessing/patch_extraction/src/utils/patch_util.py). Could you please provide the XML code or explain how I can convert the XML annotation to a suitable JSON version?

Thank you in advance.

`def get_regions_xml( path: Union[str, Path], exclude_classes: List[str] = None ) -> Tuple[List[np.ndarray], List[str]]:

TODO: Implement the functionality, write tests and docstring

raise NotImplementedError(
    "The function is not implemented yet, but will be published in a future release!"
)`