Download extensions_built_in/concept_slider/__init__.py from comdoleger/ai-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 896 Bytes
-
https://huggingface.co/comdoleger/ai-toolkit/resolve/63b0f9cc3461e6346348c4a9a285f2593ee256b5/extensions_built_in/concept_slider/__init__.py
- Command line
-
hf download hf://comdoleger/ai-toolkit@63b0f9cc3461e6346348c4a9a285f2593ee256b5/extensions_built_in/concept_slider/__init__.py
-
curl -L -o __init__.py https://huggingface.co/comdoleger/ai-toolkit/resolve/63b0f9cc3461e6346348c4a9a285f2593ee256b5/extensions_built_in/concept_slider/__init__.py
896 Bytes
| # This is an example extension for custom training. It is great for experimenting with new ideas. | |
| from toolkit.extension import Extension | |
| # This is for generic training (LoRA, Dreambooth, FineTuning) | |
| class ConceptSliderTrainerTrainer(Extension): | |
| # uid must be unique, it is how the extension is identified | |
| uid = "concept_slider" | |
| # name is the name of the extension for printing | |
| name = "Concept Slider Trainer" | |
| # This is where your process class is loaded | |
| # keep your imports in here so they don't slow down the rest of the program | |
| def get_process(cls): | |
| # import your process class here so it is only loaded when needed and return it | |
| from .ConceptSliderTrainer import ConceptSliderTrainer | |
| return ConceptSliderTrainer | |
| AI_TOOLKIT_EXTENSIONS = [ | |
| # you can put a list of extensions here | |
| ConceptSliderTrainerTrainer | |
| ] | |