We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb846a2 commit c11858fCopy full SHA for c11858f
torchvision/datasets/widerface.py
@@ -80,7 +80,7 @@ def __init__(
80
else:
81
self.target_type = [target_type]
82
self.target_type = [verify_str_arg(t, "target_type", ("raw", "bbox", "attr", ""))
83
- for t in target_type]
+ for t in self.target_type]
84
85
if not self.target_type and self.target_transform is not None:
86
raise RuntimeError('target_transform is specified but target_type is empty')
0 commit comments