Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Question: what is MODEL.WEIGHTS in d2go.exporter options? #514

Description

@soid

I'm running d2go.exporter as specified in the docs, and I'm getting the error that MODEL.WEIGHTS is not recognized as an export method:

KeyError: "No object named 'MODEL.WEIGHTS' found in 'ModelExportMethod' registry! Available names: ['torchscript_mobile_int8@tracing', 'torchscript_mobile-vulkan@tracing', 'torchscript_mobile-metal@tracing', 'torchscript_mobile@tracing', 'torchscript_int8@tracing', 'torchscript@tracing', 'torchscript_mobile_int8@scripting', 'torchscript_mobile-vulkan@scripting', 'torchscript_mobile-metal@scripting', 'torchscript_mobile@scripting', 'torchscript_int8@scripting', 'torchscript@scripting', 'torchscript_mobile_int8', 'torchscript_mobile-vulkan', 'torchscript_mobile-metal', 'torchscript_mobile', 'torchscript_int8', 'torchscript']"

The way I run the script:

d2go.exporter --config-file configs/faster_rcnn_fbnetv3a_C4.yaml \
--output-dir ./ --predictor-type torchscript_int8 \
MODEL.WEIGHTS https://mobile-cv.s3-us-west-2.amazonaws.com/d2go/models/246823121/model_0479999.pth

I was looking into the exporter code and can't figure out what's the meaning of this MODEL.WEIGHTS https://...pth options? It seems is part of --predictor-type parameter, which is parsed one by one as exporting types. But doesn't make much sense. What does it actually do?

Metadata

Metadata

Assignees

No one assigned

    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