{"id":326144,"date":"2021-02-05T18:41:15","date_gmt":"2021-02-05T10:41:15","guid":{"rendered":"http:\/\/4563.org\/?p=326144"},"modified":"2021-02-05T18:41:15","modified_gmt":"2021-02-05T10:41:15","slug":"tensorflow-1-x-%e7%89%88%e6%9c%ac%e5%a6%82%e4%bd%95%e5%af%b9-tensorflow-hub-%e7%9a%84%e6%a8%a1%e5%9e%8b%e8%bf%9b%e8%a1%8c%e5%be%ae%e8%b0%83%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=326144","title":{"rendered":"Tensorflow 1.x \u7248\u672c\u5982\u4f55\u5bf9 Tensorflow hub \u7684\u6a21\u578b\u8fdb\u884c\u5fae\u8c03\uff1f"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Tensorflow 1.x \u7248\u672c\u5982\u4f55\u5bf9 Tensorflow hub \u7684\u6a21\u578b\u8fdb\u884c\u5fae\u8c03\uff1f               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : waitfor <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u6211\u770b\u4e86\u5b98\u65b9\u7684\u6587\u6863\uff0c\u5c31\u51e0\u884c\u4ee3\u7801\uff0c\u6709\u6ca1\u6709\u4e00\u4e2a\u5168\u7684\u4ee3\u7801\u5440\u3002\u3002 \u5b98\u65b9\u7684\u4ee3\u7801\u5168\u662f TF2 keras \u7684\uff0c\u96be\u53d7\uff01 \u6025\u6025\u6025\uff01 <code>https:\/\/hub.tensorflow.google.cn\/google\/imagenet\/resnet_v2_50\/classification\/3<\/code>\u4ee5\u8fd9\u4e2a\u4e3a\u4f8b\uff0c\u5c31\u53ea\u6709\u51e0\u884c\u4ee3\u7801\uff0c<\/p>\n<pre><code>module = hub.Module(\"https:\/\/hub.tensorflow.google.cn\/google\/imagenet\/resnet_v2_50\/classification\/3\",                     trainable=True, tags={\"train\"}) logits = module(inputs=dict(images=images, batch_norm_momentum=0.997),                 signature=\"image_classification_with_bn_hparams\") <\/code><\/pre>\n<p>\u5230\u5e95\u5982\u4f55\u5fae\u8c03?<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>0<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Tensorflow 1.x \u7248\u672c&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/326144"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326144"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/326144\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}