text_plain_output_1.png
import os
filepath = '/kaggle/working/widerpersonming/WiderPerson/person.yaml'
datas = []
datas.append('train: /kaggle/working/widerpersonming/WiderPerson/train/images')
datas.append('\n')
datas.append('val: /kaggle/working/widerpersonming/WiderPerson/val/images')
datas.append('\n')
datas.append('nc: 1')
datas.append('\n')
datas.append("names: ['pedestrians']")
datas.append('\n')
print(datas)
with open(filepath, 'w') as f:
    f.writelines(datas)