DirectML版本支持运行STTN模型(Windows)

This commit is contained in:
Jason
2025-04-24 15:55:33 +08:00
parent 30e7913981
commit 746db4bced
3 changed files with 12 additions and 3 deletions

View File

@@ -607,6 +607,10 @@ class SubtitleRemover:
self.video_out_name = os.path.join(pic_dir, f'{self.vd_name}{self.ext}')
if torch.cuda.is_available():
print('use GPU for acceleration')
if config.USE_DML:
print('use DirectML for acceleration')
if config.MODE != config.InpaintMode.STTN:
print('Warning: DirectML acceleration is only available for STTN model. Falling back to CPU for other models.')
for provider in config.ONNX_PROVIDERS:
print(f"Detected execution provider: {provider}")