-
大小: 1.84MB文件類型: .gz金幣: 1下載: 0 次發(fā)布日期: 2023-08-10
- 語言: 其他
- 標(biāo)簽: 圖像識(shí)別??遷移學(xué)習(xí)??
資源簡介
狗的品種識(shí)別,人臉檢測,tensofflow,cnn,遷移學(xué)習(xí),
有些模板代碼已經(jīng)提供給你,但還需要實(shí)現(xiàn)更多的功能來完成這個(gè)項(xiàng)目,也提供答案
代碼片段和文件信息
def?extract_VGG16(tensor):
from?keras.applications.vgg16?import?VGG16?preprocess_input
return?VGG16(weights=‘imagenet‘?include_top=False).predict(preprocess_input(tensor))
def?extract_VGG19(tensor):
from?keras.applications.vgg19?import?VGG19?preprocess_input
return?VGG19(weights=‘imagenet‘?include_top=False).predict(preprocess_input(tensor))
def?extract_Resnet50(tensor):
from?keras.applications.resnet50?import?ResNet50?preprocess_input
return?ResNet50(weights=‘imagenet‘?include_top=False).predict(preprocess_input(tensor))
def?extract_Xception(tensor):
from?keras.applications.xception?import?Xception?preprocess_input
return?Xception(weights=‘imagenet‘?include_top=False).predict(preprocess_input(tensor))
def?extract_InceptionV3(tensor):
from?keras.applications.inception_v3?import?InceptionV3?preprocess_input
return?InceptionV3(weights=‘imagenet‘?include_top=False).predict(preprocess_input(tensor))
- 上一篇:Cabal驚天動(dòng)地源碼
- 下一篇:SBC3530用戶手冊(cè)
評(píng)論
共有 條評(píng)論