上传者: 38585666
|
上传时间: 2021-10-27 12:34:18
|
文件大小: 36KB
|
文件类型: -
一个例子:
print("Loading vgg19 weights...")
vgg_model = VGG19(include_top=False, weights='imagenet')
from_vgg = dict() # 因为模型定义中的layer的名字与原始vgg名字不同,所以需要调整
from_vgg['conv1_1'] = 'block1_conv1'
from_vgg['conv1_2'] = 'block1_conv2'
from_vgg['conv2_1'] = 'block2_conv1'
from_vgg