Download preprocess/humanparsing/networks/__init__.py from Navyssh/StyleSync: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/Navyssh/StyleSync/resolve/refs%2Fpr%2F1/preprocess/humanparsing/networks/__init__.py
- Command line
-
hf download hf://Navyssh/StyleSync@refs/pr/1/preprocess/humanparsing/networks/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Navyssh/StyleSync/resolve/refs%2Fpr%2F1/preprocess/humanparsing/networks/__init__.py
310 Bytes
| from __future__ import absolute_import | |
| from networks.AugmentCE2P import resnet101 | |
| __factory = { | |
| 'resnet101': resnet101, | |
| } | |
| def init_model(name, *args, **kwargs): | |
| if name not in __factory.keys(): | |
| raise KeyError("Unknown model arch: {}".format(name)) | |
| return __factory[name](*args, **kwargs) |