Skip to content

How is model.ts generated from model-zoo #544

@liqunfu

Description

@liqunfu

MONAI bundle from model zoo can be exported:
python -m monai.bundle trt_export --net_id network_def --filepath wholeBody_ct_segmentation/models/model_trt.ts --ckpt_file wholeBody_ct_segmentation/models/model.pt --meta_file wholeBody_ct_segmentation/configs/metadata.json --config_file wholeBody_ct_segmentation/configs/inference.json --precision fp32 --use_trace "True"

In this case weights are stored in a constants folder in model_trt.ts.

However, deploy sdk expects weights in a data folder:

if pivot != -1 and not prefix_data and file_name[pivot:].startswith("/data/"):

this means the exported model_trt.ts is not usable with deploy sdk.

So my question is:
Is there a process to export bundles from model-zoo to torch script models that can be used in the monai deploy sdk?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions