Download extensions_built_in/captioner/__init__.py from michaelu0826/ai_toolkit_code: direct link, hf CLI and curl.
- Browser
- Download file 786 Bytes
-
https://huggingface.co/datasets/michaelu0826/ai_toolkit_code/resolve/main/extensions_built_in/captioner/__init__.py
- Command line
-
hf download hf://datasets/michaelu0826/ai_toolkit_code/extensions_built_in/captioner/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/michaelu0826/ai_toolkit_code/resolve/main/extensions_built_in/captioner/__init__.py
786 Bytes
| from toolkit.extension import Extension | |
| class AceStepCaptionerExtension(Extension): | |
| uid = "AceStepCaptioner" | |
| name = "Ace Step Captioner" | |
| def get_process(cls): | |
| # import your process class here so it is only loaded when needed and return it | |
| from .AceStepCaptioner import AceStepCaptioner | |
| return AceStepCaptioner | |
| class Qwen3VLCaptionerExtension(Extension): | |
| uid = "Qwen3VLCaptioner" | |
| name = "Qwen 3VL Captioner" | |
| def get_process(cls): | |
| # import your process class here so it is only loaded when needed and return it | |
| from .Qwen3VLCaptioner import Qwen3VLCaptioner | |
| return Qwen3VLCaptioner | |
| AI_TOOLKIT_EXTENSIONS = [ | |
| AceStepCaptionerExtension, | |
| Qwen3VLCaptionerExtension, | |
| ] | |