python API _ 1 (EasyDict)
Posted Bob_li
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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)
以上是关于python API _ 1 (EasyDict)的主要内容,如果未能解决你的问题,请参考以下文章