MCPcopy
hub / github.com/ultralytics/yolov5 / yaml_save

Function yaml_save

utils/general.py:598–601  ·  view source on GitHub ↗
(file='data.yaml', data={})

Source from the content-addressed store, hash-verified

596
597
598def yaml_save(file='data.yaml', data={}):
599 # Single-line safe yaml saving
600 with open(file, 'w') as f:
601 yaml.safe_dump({k: str(v) if isinstance(v, Path) else v for k, v in data.items()}, f, sort_keys=False)
602
603
604def unzip_file(file, path=None, exclude=('.DS_Store', '__MACOSX')):

Callers 5

trainFunction · 0.90
export_openvinoFunction · 0.90
export_paddleFunction · 0.90
trainFunction · 0.90
trainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected