Buckets:
| # This is an example extension for custom training. It is great for experimenting with new ideas. | |
| from toolkit.extension import Extension | |
| # We make a subclass of Extension | |
| class ImageReferenceSliderTrainer(Extension): | |
| # uid must be unique, it is how the extension is identified | |
| uid = "image_reference_slider_trainer" | |
| # name is the name of the extension for printing | |
| name = "Image Reference 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 .ImageReferenceSliderTrainerProcess import ImageReferenceSliderTrainerProcess | |
| return ImageReferenceSliderTrainerProcess | |
| AI_TOOLKIT_EXTENSIONS = [ | |
| # you can put a list of extensions here | |
| ImageReferenceSliderTrainer | |
| ] | |
Xet Storage Details
- Size:
- 933 Bytes
- Xet hash:
- 495e485d4d271fd995e042c395c8cf2f712740c8eae9e8f49d434f7970bf62ca
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.