You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
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?
The text was updated successfully, but these errors were encountered:
soid
changed the title
Question: what is MODEL.WEIGHTS in d2go.exporter options
Question: what is MODEL.WEIGHTS in d2go.exporter options?
Mar 28, 2023
Ok, I figured that --output-dir should follow --predictor-type, not the other way, as in the example with torchscript. I created a PR to correct the doc.
I'm still curious of the meaning of MODEL.WEIGHTS http:/... argument.
@soid The weird problem is because a conflict of nargs when using argparse: in d2go.exporter the --predictor-type is set with nargs="+" (https://github.com/facebookresearch/d2go/blob/main/tools/exporter.py#L123) while there's another opts argument is set with nargs=argparse.REMAINDER (https://github.com/facebookresearch/d2go/blob/main/d2go/setup.py#L111). Therefore --predictor-type can't be used as the last argument, for example putting --output-dir behind it would work. The opt argument is for overwriting the config file, MODEL.WEIGHTS http:/... overwrites the model weights in the config file configs/faster_rcnn_fbnetv3a_C4.yaml with a trained one.
I'm running
d2go.exporter
as specified in the docs, and I'm getting the error thatMODEL.WEIGHTS
is not recognized as an export method:The way I run the script:
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?The text was updated successfully, but these errors were encountered: