Skip to content

Commit aa41000

Browse files
committed
Trace on eval mode.
1 parent fac0206 commit aa41000

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tracing/frcnn/trace_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
ASSETS = osp.dirname(osp.dirname(HERE))
99

1010
model = torchvision.models.detection.fasterrcnn_resnet50_fpn(pretrained=False)
11-
model.train()
11+
model.eval()
1212

1313
traced_model = torch.jit.script(model)
1414
traced_model.save("fasterrcnn_resnet50_fpn.pt")

0 commit comments

Comments
 (0)