Download extensions_built_in/dataset_tools/DatasetTools.py from comdoleger/ai-toolkit: direct link, hf CLI and curl.
- Browser
- Download file 446 Bytes
-
https://huggingface.co/comdoleger/ai-toolkit/resolve/744e37c85e761b6ce8c703894a1ec68688743b12/extensions_built_in/dataset_tools/DatasetTools.py
- Command line
-
hf download hf://comdoleger/ai-toolkit@744e37c85e761b6ce8c703894a1ec68688743b12/extensions_built_in/dataset_tools/DatasetTools.py
-
curl -L -o DatasetTools.py https://huggingface.co/comdoleger/ai-toolkit/resolve/744e37c85e761b6ce8c703894a1ec68688743b12/extensions_built_in/dataset_tools/DatasetTools.py
446 Bytes
| from collections import OrderedDict | |
| import gc | |
| import torch | |
| from jobs.process import BaseExtensionProcess | |
| def flush(): | |
| torch.cuda.empty_cache() | |
| gc.collect() | |
| class DatasetTools(BaseExtensionProcess): | |
| def __init__(self, process_id: int, job, config: OrderedDict): | |
| super().__init__(process_id, job, config) | |
| def run(self): | |
| super().run() | |
| raise NotImplementedError("This extension is not yet implemented") | |