🐛[bugfix] Config : compute device "name" -> "device_name"
This commit is contained in:
@@ -1606,14 +1606,6 @@ class Controller:
|
||||
th_download.daemon = True
|
||||
th_download.start()
|
||||
|
||||
@staticmethod
|
||||
def updateComputeDeviceSettings() -> None:
|
||||
if config.COMPUTE_MODE == "cpu":
|
||||
if config.SELECTED_TRANSLATION_COMPUTE_DEVICE["device"] != "cpu":
|
||||
config.SELECTED_TRANSLATION_COMPUTE_DEVICE = {"device":"cpu", "device_index":0, "device_name":"cpu"}
|
||||
if config.SELECTED_TRANSCRIPTION_COMPUTE_DEVICE["device"] != "cpu":
|
||||
config.SELECTED_TRANSCRIPTION_COMPUTE_DEVICE = {"device":"cpu", "device_index":0, "device_name":"cpu"}
|
||||
|
||||
@staticmethod
|
||||
def startWatchdog(*args, **kwargs) -> dict:
|
||||
model.startWatchdog()
|
||||
@@ -1687,10 +1679,6 @@ class Controller:
|
||||
|
||||
self.initializationProgress(3)
|
||||
|
||||
# set Compute CPU or CUDA
|
||||
printLog("Set Compute CPU or CUDA")
|
||||
self.updateComputeDeviceSettings()
|
||||
|
||||
# set word filter
|
||||
printLog("Set Word Filter")
|
||||
model.addKeywords()
|
||||
|
||||
Reference in New Issue
Block a user