otx.algo.utils.utils#

Utility functions for OTX algo.

Functions

torch_hub_load(repo_or_dir, model)

Load a module using from 'torch.hub'.

otx.algo.utils.utils.torch_hub_load(repo_or_dir: str, model: str) nn.Module[source]#

Load a module using from ‘torch.hub’. The module is modified to support pickle.