运行代码机/深度学习时出错

时间:2019-06-06 10:24:22

标签: python python-3.x

我无法解决此错误:

NameErrorTraceback (most recent call last)
1 modelFns = { 'vgg_segnet':Models.VGGSegnet.VGGSegnet}    
NameError: name 'Models' is not defined

我的代码:

import VGGSegnet
import LoadBatches
from keras.models import load_model

modelFns = { 'vgg_segnet':Models.VGGSegnet.VGGSegnet}
modelFN = modelFns[ model_name ]
m = modelFN( n_classes , input_height=input_height, input_width=input_width   )

0 个答案:

没有答案