當前位置: 首頁>>代碼示例>>Python>>正文


Python config.output_path方法代碼示例

本文整理匯總了Python中config.config.config.output_path方法的典型用法代碼示例。如果您正苦於以下問題:Python config.output_path方法的具體用法?Python config.output_path怎麽用?Python config.output_path使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在config.config.config的用法示例。


在下文中一共展示了config.output_path方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)

    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:i-pan,項目名稱:kaggle-rsna18,代碼行數:11,代碼來源:test.py

示例2: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    print ('Called with argument:', args)
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    logger, output_path = create_logger(config.output_path, args.cfg, config.dataset.image_set)
    shutil.copy2(os.path.join(curr_path, 'symbols', config.symbol + '.py'), output_path)

    prefix = os.path.join(output_path, 'rcnn')
    logging.info('########## TRAIN rcnn WITH IMAGENET INIT AND RPN DETECTION')
    train_rcnn(config, config.dataset.dataset, config.dataset.image_set, config.dataset.root_path, config.dataset.dataset_path,
               args.frequent, config.default.kvstore, config.TRAIN.FLIP, config.TRAIN.SHUFFLE, config.TRAIN.RESUME,
               ctx, config.network.pretrained, config.network.pretrained_epoch, prefix, config.TRAIN.begin_epoch,
               config.TRAIN.end_epoch, train_shared=False, lr=config.TRAIN.lr, lr_step=config.TRAIN.lr_step,
               proposal=config.dataset.proposal, logger=logger) 
開發者ID:i-pan,項目名稱:kaggle-rsna18,代碼行數:15,代碼來源:train_rcnn.py

示例3: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    print ('Called with argument:', args)
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    logger, output_path = create_logger(config.output_path, args.cfg, config.dataset.image_set)
    shutil.copy2(os.path.join(curr_path, 'symbols', config.symbol + '.py'), output_path)

    prefix = os.path.join(output_path, 'rfcn')
    logging.info('########## TRAIN rfcn WITH IMAGENET INIT AND RPN DETECTION')
    train_rcnn(config, config.dataset.dataset, config.dataset.image_set, config.dataset.root_path, config.dataset.dataset_path,
               args.frequent, config.default.kvstore, config.TRAIN.FLIP, config.TRAIN.SHUFFLE, config.TRAIN.RESUME,
               ctx, config.network.pretrained, config.network.pretrained_epoch, prefix, config.TRAIN.begin_epoch,
               config.TRAIN.end_epoch, train_shared=False, lr=config.TRAIN.lr, lr_step=config.TRAIN.lr_step,
               proposal=config.dataset.proposal, logger=logger) 
開發者ID:i-pan,項目名稱:kaggle-rsna18,代碼行數:15,代碼來源:train_rfcn.py

示例4: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args
    np.random.seed(0)
    mx.random.seed(0)
    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)

    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:i-pan,項目名稱:kaggle-rsna18,代碼行數:12,代碼來源:test.py

示例5: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    print ('Called with argument:', args)
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    logger, output_path = create_logger(config.output_path, args.cfg, config.dataset.image_set)
    shutil.copy2(os.path.join(curr_path, 'symbols', config.symbol + '.py'), output_path)

    assert config.TRAIN.END2END == False
    prefix = os.path.join(output_path, config.TRAIN.model_prefix)
    logging.info('########## TRAIN rcnn WITH IMAGENET INIT AND RPN DETECTION')
    train_rcnn(config, config.dataset.dataset, config.dataset.image_set, config.dataset.root_path, config.dataset.dataset_path,
               args.frequent, config.default.kvstore, config.TRAIN.FLIP, config.TRAIN.SHUFFLE, config.TRAIN.RESUME,
               ctx, config.network.pretrained, config.network.pretrained_epoch, prefix, config.TRAIN.begin_epoch,
               config.TRAIN.end_epoch, train_shared=False, lr=config.TRAIN.lr, lr_step=config.TRAIN.lr_step,
               proposal=config.dataset.proposal, logger=logger, output_path=output_path) 
開發者ID:i-pan,項目名稱:kaggle-rsna18,代碼行數:16,代碼來源:train_rcnn.py

示例6: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)

    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path, config.dataset.motion_iou_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path,
              enable_detailed_eval=config.dataset.enable_detailed_eval) 
開發者ID:wangshy31,項目名稱:MANet_for_Video_Object_Detection,代碼行數:12,代碼來源:test.py

示例7: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)

    test_rcnn_poly(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path,
              config.dataset.dataset_path,
              ctx,
              os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]),
                           config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.draw, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh,
              logger=logger, output_path=final_output_path) 
開發者ID:dingjiansw101,項目名稱:RoITransformer_DOTA,代碼行數:15,代碼來源:test_poly.py

示例8: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args
    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)
    # test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
    #           ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
    #           args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path)
    test_rcnn_poly(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:dingjiansw101,項目名稱:RoITransformer_DOTA,代碼行數:12,代碼來源:test_poly.py

示例9: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args
    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)
    # test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
    #           ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
    #           args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path)
    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, True, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:dingjiansw101,項目名稱:RoITransformer_DOTA,代碼行數:12,代碼來源:test.py

示例10: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)


    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path,
                             config.dataset.dataset_path,
                             ctx, os.path.join(final_output_path, '..',
                                               '_'.join([iset for iset in config.dataset.image_set.split('+')]),
                                               config.TRAIN.model_prefix), config.TEST.test_epoch,
                             args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal,
                             args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:jessemelpolio,項目名稱:Faster_RCNN_for_DOTA,代碼行數:16,代碼來源:test.py

示例11: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)


    test_rcnn_dota(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path,
                             config.dataset.dataset_path,
                             ctx, os.path.join(final_output_path, '..',
                                               '_'.join([iset for iset in config.dataset.image_set.split('+')]),
                                               config.TRAIN.model_prefix), config.TEST.test_epoch,
                             args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal,
                             args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:jessemelpolio,項目名稱:Faster_RCNN_for_DOTA,代碼行數:16,代碼來源:test_dota.py

示例12: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print args

    logger, final_output_path = create_logger(config.output_path, args.cfg, config.dataset.test_image_set)

    test_rcnn_dota_quadrangle(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path, config.dataset.dataset_path,
              ctx, os.path.join(final_output_path, '..', '_'.join([iset for iset in config.dataset.image_set.split('+')]), config.TRAIN.model_prefix), config.TEST.test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh, logger=logger, output_path=final_output_path) 
開發者ID:jessemelpolio,項目名稱:Faster_RCNN_for_DOTA,代碼行數:11,代碼來源:test_dota_quadrangle.py

示例13: main

# 需要導入模塊: from config.config import config [as 別名]
# 或者: from config.config.config import output_path [as 別名]
def main():
    ctx = [mx.gpu(int(i)) for i in config.gpus.split(',')]
    print(args)

    if args.sample_stride != -1:
        config.TEST.sample_stride = args.sample_stride
    if args.key_frame_interval != -1:
        config.TEST.KEY_FRAME_INTERVAL = args.key_frame_interval
    if args.video_shuffle:
        config.TEST.video_shuffle = args.video_shuffle


    logger, final_output_path, tb_log_path = create_logger(config.output_path, config.log_path, args.cfg,
                                                           config.dataset.test_image_set)

    trained_model = os.path.join(final_output_path, '..', '_'.join(
        [iset for iset in config.dataset.image_set.split('+')]),
                                 config.TRAIN.model_prefix)
    test_epoch = config.TEST.test_epoch
    if args.test_pretrained:
        trained_model = args.test_pretrained
        test_epoch = 0

    test_rcnn(config, config.dataset.dataset, config.dataset.test_image_set, config.dataset.root_path,
              config.dataset.dataset_path, config.dataset.motion_iou_path,
              ctx,
              trained_model,
              test_epoch,
              args.vis, args.ignore_cache, args.shuffle, config.TEST.HAS_RPN, config.dataset.proposal, args.thresh,
              logger=logger, output_path=final_output_path,
              enable_detailed_eval=config.dataset.enable_detailed_eval) 
開發者ID:happywu,項目名稱:Sequence-Level-Semantics-Aggregation,代碼行數:33,代碼來源:test.py


注:本文中的config.config.config.output_path方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。