Instructions to use nlpcvcode/Glyph-SDXL-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Glyph-ByT5
How to use nlpcvcode/Glyph-SDXL-v2 with Glyph-ByT5:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download glyph_sdxl/utils/parse_config.py from nlpcvcode/Glyph-SDXL-v2: direct link, hf CLI and curl.
- Browser
- Download file 384 Bytes
-
https://huggingface.co/nlpcvcode/Glyph-SDXL-v2/resolve/main/glyph_sdxl/utils/parse_config.py
- Command line
-
hf download hf://nlpcvcode/Glyph-SDXL-v2/glyph_sdxl/utils/parse_config.py
-
curl -L -o parse_config.py https://huggingface.co/nlpcvcode/Glyph-SDXL-v2/resolve/main/glyph_sdxl/utils/parse_config.py
384 Bytes
| import argparse | |
| import os | |
| import os.path as osp | |
| from mmengine.config import Config | |
| def parse_config(path=None): | |
| if path is None: | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('config_dir', type=str) | |
| args = parser.parse_args() | |
| path = args.config_dir | |
| config = Config.fromfile(path) | |
| config.config_dir = path | |
| return config | |