zoukankan      html  css  js  c++  java
  • python API _ 1 (EasyDict)

    作用:参数调用
    文件一:
    from easydict import EasyDict as edict
    import numpy as np

    config = edict()

    config.IMG_HEIGHT = 375
    config.IMG_WIDTH = 1242
    config.EXP_THRESH = 1.0
    config.RBG_MEANS = np.array([[[ 123.68, 116.779, 103.939]]])

    def set_anchors(H, W):
    B = 9
    shape = np.array(
    [[ 36., 37.], [ 366., 174.], [ 115., 59.],
    [ 162., 87.], [ 38., 90.], [ 258., 173.],
    [ 224., 108.], [ 78., 170.], [ 72., 43.]])
    ... ...

    文件二:
    from configs.kitti_config import config
    num_output = config.NUM_ANCHORS * (config.NUM_CLASSES + 1 + 4)
  • 相关阅读:
    Unique Paths II
    Subsets II
    Subsets
    Jump Game II
    Jump Game
    Valid Sudoku
    Valid Parentheses
    Length of Last Word
    Trapping Rain Water
    Sum Root to Leaf Numbers
  • 原文地址:https://www.cnblogs.com/Libo-Master/p/8926078.html
Copyright © 2011-2022 走看看