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 9181496 commit f1d007dCopy full SHA for f1d007d
references/detection/train.py
@@ -158,10 +158,7 @@ def main(args):
158
device = torch.device(args.device)
159
160
if args.use_deterministic_algorithms:
161
- torch.backends.cudnn.benchmark = False
162
torch.use_deterministic_algorithms(True)
163
- else:
164
- torch.backends.cudnn.benchmark = True
165
166
# Data loading code
167
print("Loading data")
@@ -253,8 +250,6 @@ def main(args):
253
250
scaler.load_state_dict(checkpoint["scaler"])
254
251
255
252
if args.test_only:
256
- # We disable the cudnn benchmarking because it can noticeably affect the accuracy
257
258
torch.backends.cudnn.deterministic = True
259
evaluate(model, data_loader_test, device=device)
260
return
0 commit comments