Skip to content

Commit c470b67

Browse files
ppwwyyxxfacebook-github-bot
authored andcommitted
allow tracing pointrend models
Reviewed By: theschnitz Differential Revision: D25111890 fbshipit-source-id: b5412f1471e1df0555e94787b8c5798195375e1e
1 parent c25b53d commit c470b67

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/deploy/export_model.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from detectron2.export import Caffe2Tracer, add_export_config
1414
from detectron2.export.torchscript import dump_torchscript_IR, export_torchscript_with_instances
1515
from detectron2.modeling import GeneralizedRCNN, build_model
16+
from detectron2.projects.point_rend import add_pointrend_config
1617
from detectron2.structures import Boxes
1718
from detectron2.utils.env import TORCH_VERSION
1819
from detectron2.utils.logger import setup_logger
@@ -23,6 +24,7 @@ def setup_cfg(args):
2324
# cuda context is initialized before creating dataloader, so we don't fork anymore
2425
cfg.DATALOADER.NUM_WORKERS = 0
2526
cfg = add_export_config(cfg)
27+
add_pointrend_config(cfg)
2628
cfg.merge_from_file(args.config_file)
2729
cfg.merge_from_list(args.opts)
2830
cfg.freeze()

0 commit comments

Comments
 (0)