V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
waitfor
V2EX  ›  TensorFlow

Tensorflow 1.x 版本如何对 Tensorflow hub 的模型进行微调?

  •  
  •   waitfor · 2021-02-04 17:25:25 +08:00 · 1888 次点击
    这是一个创建于 1148 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我看了官方的文档,就几行代码,有没有一个全的代码呀。。 官方的代码全是 TF2 keras 的,难受! 急急急! https://hub.tensorflow.google.cn/google/imagenet/resnet_v2_50/classification/3以这个为例,就只有几行代码,

    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")
    

    到底如何微调?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2429 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 16:06 · PVG 00:06 · LAX 09:06 · JFK 12:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.