def get_output_dir(imdb_name, net_name=None, output_dir='output'):
    'Return the directory where experimental artifacts are placed.\n    If the directory does not exist, it is created.\n\n    A canonical path is built using the name from an imdb and a network\n    (if not None).\n    '
    outdir = osp.abspath(osp.join(cfg.ROOT_DIR, output_dir, cfg.EXP_DIR, imdb_name))
    if (net_name is not None):
        outdir = osp.join(outdir, net_name)
    if (not os.path.exists(outdir)):
        os.makedirs(outdir)
    return outdir
Return the directory where experimental artifacts are placed.
If the directory does not exist, it is created.

A canonical path is built using the name from an imdb and a network
(if not None).
def get_output_dir(imdb_name, net_name=None, output_dir='output'):
    'Return the directory where experimental artifacts are placed.\n    If the directory does not exist, it is created.\n\n    A canonical path is built using the name from an imdb and a network\n    (if not None).\n    '
    outdir = osp.abspath(osp.join(cfg.ROOT_DIR, output_dir, cfg.EXP_DIR, imdb_name))
    if (net_name is not None):
        outdir = osp.join(outdir, net_name)
    if (not os.path.exists(outdir)):
        os.makedirs(outdir)
    return outdir