码迷,mamicode.com
首页 > 编程语言 > 详细

python API _ 1 (EasyDict)

时间:2018-04-24 10:59:24      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:sha   文件   ict   rom   def   python   pytho   img   array   

作用:参数调用
文件一:
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)

标签:sha   文件   ict   rom   def   python   pytho   img   array   

原文地址:https://www.cnblogs.com/Libo-Master/p/8926078.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!