我无法解决此错误:
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 )