dataset/YOLO_format.py
def write_obj_data(num_classes):
    """Function to write data/obj.data file"""
    print("\nWriting obj.data file...")
    pbar = tqdm(total=1)         #make progress bar for graphical display
    with open(os.path.join(args.save_dir, 'data/obj.data'), 'a+') as f:
        f.write('classes = {}\ntrain = {}\nvalid = {}\nnames = {}\nbackup = backup'.format(
                num_classes, 
                osp.join(args.save_dir, 'data/train.txt'), 
                osp.join(args.save_dir, 'data/test.txt'),
                osp.join(args.save_dir, 'data/obj.names')
                )
        )
    pbar.update(1)
    pbar.close()
Function to write data/obj.data file
Function to write data/obj.data file
Function to write data / obj . data file
def write_obj_data(num_classes):
    print("\nWriting obj.data file...")
    pbar = tqdm(total=1)         
    with open(os.path.join(args.save_dir, 'data/obj.data'), 'a+') as f:
        f.write('classes = {}\ntrain = {}\nvalid = {}\nnames = {}\nbackup = backup'.format(
                num_classes, 
                osp.join(args.save_dir, 'data/train.txt'), 
                osp.join(args.save_dir, 'data/test.txt'),
                osp.join(args.save_dir, 'data/obj.names')
                )
        )
    pbar.update(1)
    pbar.close()
def write_obj_data ( num_classes ) : print ( "\nWriting obj.data file..." ) pbar = tqdm ( total = 1 ) with open ( os . path . join ( args . save_dir , 'data/obj.data' ) , 'a+' ) as f : f . write ( 'classes = {}\ntrain = {}\nvalid = {}\nnames = {}\nbackup = backup' . format ( num_classes , osp . join ( args . save_dir , 'data/train.txt' ) , osp . join ( args . save_dir , 'data/test.txt' ) , osp . join ( args . save_dir , 'data/obj.names' ) ) ) pbar . update ( 1 ) pbar . close ( )
Function to write data/obj.data file
Function to write data / obj . data file
"""Function to write data/obj.data file""" #make progress bar for graphical display
num_classes