Quantumbraid/trainingdata / ExtensionJob.py
Quantumbraid's picture
download
raw
662 Bytes
import os
from collections import OrderedDict
from jobs import BaseJob
from toolkit.extension import get_all_extensions_process_dict
from toolkit.paths import CONFIG_ROOT
class ExtensionJob(BaseJob):
def __init__(self, config: OrderedDict):
super().__init__(config)
self.device = self.get_conf('device', 'cpu')
self.process_dict = get_all_extensions_process_dict()
self.load_processes(self.process_dict)
def run(self):
super().run()
print("")
print(f"Running {len(self.process)} process{'' if len(self.process) == 1 else 'es'}")
for process in self.process:
process.run()

Xet Storage Details

Size:
662 Bytes
·
Xet hash:
36f3a60b19b698cbd910360ef6b3485a1a76b6c209a86459f5d433ea41cc439c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.