Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from network.wider_resnet import wider_resnet38_a2 #75

Open
oxygen39 opened this issue Aug 1, 2020 · 3 comments
Open

from network.wider_resnet import wider_resnet38_a2 #75

oxygen39 opened this issue Aug 1, 2020 · 3 comments

Comments

@oxygen39
Copy link

oxygen39 commented Aug 1, 2020

why I don't find the wider_resnet38_a2 ?

@NeilDG
Copy link

NeilDG commented Dec 2, 2021

Same problem here.

@John-cjj
Copy link

John-cjj commented Nov 4, 2022

Anyone who solved it? I met this problem also, please help, thanks!

@Billy-ZTB
Copy link

Billy-ZTB commented Apr 2, 2024

_NETS = {
    "16": {"structure": [1, 1, 1, 1, 1, 1]},
    "20": {"structure": [1, 1, 1, 3, 1, 1]},
    "38": {"structure": [3, 3, 6, 3, 1, 1]},
}

__all__ = []
for name, params in _NETS.items():
    net_name = "wider_resnet" + name
    setattr(sys.modules[__name__], net_name, partial(WiderResNet, **params))
    __all__.append(net_name)
for name, params in _NETS.items():
    net_name = "wider_resnet" + name + "_a2"
    setattr(sys.modules[__name__], net_name, partial(WiderResNetA2, **params))
    __all__.append(net_name)

The module wider_resnet38_a2 is added by these codes in wider_resnet.py. If you encountered the problem "Cannot find reference 'wider_resnet38_a2' in 'wider_resnet.py' ", you can import WiderResNetA2 and initialize it like this:

        from network.wider_resnet import WiderResNetA2
        wide_resnet = WiderResNetA2(structure=[3, 3, 6, 3, 1, 1], classes=1000, dilation=True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants