mirror of
https://github.com/ultralytics/yolov5.git
synced 2025-06-03 14:49:29 +08:00
Add --half
arguments to export.py Usage examples (#8516)
This commit is contained in:
parent
be42a24d23
commit
63ba0cb18a
@ -555,11 +555,12 @@ def run(
|
||||
# Finish
|
||||
f = [str(x) for x in f if x] # filter out '' and None
|
||||
if any(f):
|
||||
h = '--half' if half else '' # --half FP16 inference arg
|
||||
LOGGER.info(f'\nExport complete ({time.time() - t:.2f}s)'
|
||||
f"\nResults saved to {colorstr('bold', file.parent.resolve())}"
|
||||
f"\nDetect: python detect.py --weights {f[-1]}"
|
||||
f"\nDetect: python detect.py --weights {f[-1]} {h}"
|
||||
f"\nValidate: python val.py --weights {f[-1]} {h}"
|
||||
f"\nPyTorch Hub: model = torch.hub.load('ultralytics/yolov5', 'custom', '{f[-1]}')"
|
||||
f"\nValidate: python val.py --weights {f[-1]}"
|
||||
f"\nVisualize: https://netron.app")
|
||||
return f # return list of exported files/dirs
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user