Skip to content

Commit 14e87dc

Browse files
glenn-jocherShivvrat
authored andcommitted
XML export --half fix (ultralytics#8522)
Improved error reporting for ultralytics#8519
1 parent 1eefac9 commit 14e87dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

export.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -484,7 +484,7 @@ def run(
484484
# Load PyTorch model
485485
device = select_device(device)
486486
if half:
487-
assert device.type != 'cpu' or coreml or xml, '--half only compatible with GPU export, i.e. use --device 0'
487+
assert device.type != 'cpu' or coreml, '--half only compatible with GPU export, i.e. use --device 0'
488488
assert not dynamic, '--half not compatible with --dynamic, i.e. use either --half or --dynamic but not both'
489489
model = attempt_load(weights, device=device, inplace=True, fuse=True) # load FP32 model
490490
nc, names = model.nc, model.names # number of classes, class names

0 commit comments

Comments
 (0)