train_faster_rcnn_alt_opt.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:adversarial-frcnn 作者: xiaolonw 项目源码 文件源码
def _init_caffe(cfg):
    """Initialize pycaffe in a training process.
    """

    import caffe
    # fix the random seeds (numpy and caffe) for reproducibility
    np.random.seed(cfg.RNG_SEED)
    caffe.set_random_seed(cfg.RNG_SEED)
    # set up caffe
    caffe.set_mode_gpu()
    caffe.set_device(cfg.GPU_ID)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号