Spaces:
Build error
Build error
Download modeling/interface/__init__.py from Leyogho/Core-AI-IMAGE: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/spaces/Leyogho/Core-AI-IMAGE/resolve/main/modeling/interface/__init__.py
- Command line
-
hf download hf://spaces/Leyogho/Core-AI-IMAGE/modeling/interface/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/Leyogho/Core-AI-IMAGE/resolve/main/modeling/interface/__init__.py
369 Bytes
| from .xdecoder import * | |
| from .seem_v0 import * | |
| from .seem_v1 import * | |
| from .seem_demo import * | |
| from .build import * | |
| def build_decoder(config, *args, **kwargs): | |
| model_name = config['MODEL']['DECODER']['NAME'] | |
| if not is_model(model_name): | |
| raise ValueError(f'Unkown model: {model_name}') | |
| return model_entrypoints(model_name)(config, *args, **kwargs) |