Skip to content

TorchScript not working with HoVerNet enum keys #5218

@bhashemian

Description

@bhashemian

HoverNet enums (Mode and Branch) are defined inside the HoverNet module, but it seems that this is not compatible with TorchScript and produce error. I have filed an issue for that on PyTorch repo: pytorch/pytorch#85813
Hopefully they can resolve this; however, regardless of that we should move these enums to monia/utils/enums similar to other keys. This will solve this issue and give a more standard way to defining keys.

Metadata

Metadata

Assignees

Labels

Pathology/MicroscopyDigital Pathology and Microscopy related

Type

No type

Projects

Status

💯 Complete

Relationships

None yet

Development

No branches or pull requests

Issue actions