rwightman/gen-efficientnet-pytorch

efficientnet pretrained model URL is empty

hjlee9182 opened this issue · 7 comments

When I use this code

model = geffnet.create_model(
'efficientnet_b5',
num_classes=1000,
in_chans=3,
pretrained=True,
exportable=True)

image

But this error occured.

efficientnet b0~b3 => okay

efficientnet b4~b7 => URL is empty.

How to solved this problem?

@linhduongtuan
You mean tensorflow hub efficientnet?

@linhduongtuan
Oh, I'm so sorry ,I didn't get it exactly.

  1. where is converts/ports file? I can't find that in this repository.
    Can you give the link?

  2. I'm not correctly know model that is you mentioned, Can you give link that has model?

  3. You mean that pretrained TF efficientnet model weight to convert Pytorch weight?

Oh, I understand clearly.
I have one more question.
I see tf_efficientnet is more accurately better than efficientnet.

Did you know the reason that?

thanks @linhduongtuan

@hjlee9182 all models with the tf_ prefix were converted from original Tensorflow weights, and are available here https://github.com/tensorflow/tpu/tree/master/models/official/efficientnet ... numerous different papers are covered so quite a few different sets of weights. The models without the prefix were trained in PyTorch by me, I've only had resources to train the smaller ones. The models do differ in the padding used. You can research SAME padding in PyTorch if you are curious why that's relevant.