Skip to content

Commit 1e68b03

Browse files
robert-perrottajdsgomes
authored andcommitted
Fix error message typo (pytorch#6682)
1 parent 673838f commit 1e68b03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchvision/models/detection/roi_heads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ def forward(
787787
mask_proposals = [p["boxes"] for p in result]
788788
if self.training:
789789
if matched_idxs is None:
790-
raise ValueError("if in trainning, matched_idxs should not be None")
790+
raise ValueError("if in training, matched_idxs should not be None")
791791

792792
# during training, only focus on positive boxes
793793
num_images = len(proposals)

0 commit comments

Comments
 (0)