Download third_party/TopicFM/src/__init__.py from fantos/vidimatch: direct link, hf CLI and curl.
- Browser
- Download file 318 Bytes
-
https://huggingface.co/spaces/fantos/vidimatch/resolve/main/third_party/TopicFM/src/__init__.py
- Command line
-
hf download hf://spaces/fantos/vidimatch/third_party/TopicFM/src/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/fantos/vidimatch/resolve/main/third_party/TopicFM/src/__init__.py
318 Bytes
| from yacs.config import CfgNode | |
| from .config.default import _CN | |
| def lower_config(yacs_cfg): | |
| if not isinstance(yacs_cfg, CfgNode): | |
| return yacs_cfg | |
| return {k.lower(): lower_config(v) for k, v in yacs_cfg.items()} | |
| def get_model_cfg(): | |
| cfg = lower_config(lower_config(_CN)) | |
| return cfg["model"] | |