mirror of
https://github.com/YaoFANGUK/video-subtitle-remover.git
synced 2026-05-18 11:37:35 +08:00
使用PySide6-Fluent-Widgets重构整套UI
添加任务列表组件并优化视频加载逻辑 支持可视化显示字幕区域 整理所有模型, 分别为STTN智能擦除, STTN字幕检测, LAMA, ProPainter, OpenCV 提高处理性能 新增CPU运行模式并优化多语言支持 修复Propainter模式部分视频报错 本次提交新增了CPU运行模式,适用于无GPU加速的场景。同时,优化了多语言支持,新增了日语、韩语、越南语等语言配置文件,并更新了README文档以反映新的运行模式和多语言支持。此外,修复了部分代码逻辑,提升了系统的稳定性和兼容性。
This commit is contained in:
20
backend/tools/constant.py
Normal file
20
backend/tools/constant.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from enum import Enum, unique
|
||||
|
||||
@unique
|
||||
class InpaintMode(Enum):
|
||||
"""
|
||||
图像重绘算法枚举
|
||||
"""
|
||||
STTN_AUTO = "sttn-auto"
|
||||
STTN_DET = "sttn-det"
|
||||
LAMA = "lama"
|
||||
PROPAINTER = "propainter"
|
||||
OPENCV = "opencv"
|
||||
|
||||
@unique
|
||||
class SubtitleDetectMode(Enum):
|
||||
"""
|
||||
字幕检测算法枚举
|
||||
"""
|
||||
Fast = 0
|
||||
Accurate = 1
|
||||
Reference in New Issue
Block a user