Skip to content

Commit b13a341

Browse files
committed
修复QPT会因为依赖等关系将CPU版本的Paddle打包入内,造成CPU+GPU版本同时被安装,提示运行在CPU模式下, 实际上可以用上GPU
给用户增加检测GPU可用性提示
1 parent 55223d9 commit b13a341

File tree

11 files changed

+14
-4
lines changed

11 files changed

+14
-4
lines changed

.github/workflows/build-windows-cuda-10.2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ jobs:
7373
pip download -d ./vse_out/Debug/opt/packages/ paddlepaddle-gpu==2.5.2.post102 -f https://www.paddlepaddle.org.cn/whl/windows/mkl/avx/stable.html && \
7474
pip download -d ./vse_out/Debug/opt/packages/ -r requirements.txt && \
7575
cp -rfv ./vse_out/Debug/opt/packages/* ./vse_out/Release/opt/packages/ && \
76-
rm -fv ./vse_out/*/opt/packages/numpy-2*
76+
rm -fv ./vse_out/*/opt/packages/numpy-2* && \
77+
rm -fv ./vse_out/*/opt/packages/paddlepaddle-*
7778
env:
7879
QPT_Action: "True"
7980
CUDA_PATH_V10_2: "${{steps.cuda-toolkit.outputs.CUDA_PATH}}"

.github/workflows/build-windows-cuda-11.8.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ jobs:
6262
pip download -d ./vse_out/Debug/opt/packages/ paddlepaddle-gpu==3.0.0rc1 -i https://www.paddlepaddle.org.cn/packages/stable/cu118/ && \
6363
pip download -d ./vse_out/Debug/opt/packages/ -r requirements.txt && \
6464
cp -rfv ./vse_out/Debug/opt/packages/* ./vse_out/Release/opt/packages/ && \
65-
rm -fv ./vse_out/*/opt/packages/numpy-2*
65+
rm -fv ./vse_out/*/opt/packages/numpy-2* && \
66+
rm -fv ./vse_out/*/opt/packages/paddlepaddle-*
6667
env:
6768
QPT_Action: "True"
6869
shell: bash

.github/workflows/build-windows-cuda-12.3.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ jobs:
6262
pip download -d ./vse_out/Debug/opt/packages/ paddlepaddle-gpu==3.0.0rc1 -i https://www.paddlepaddle.org.cn/packages/stable/cu123/ && \
6363
pip download -d ./vse_out/Debug/opt/packages/ -r requirements.txt && \
6464
cp -rfv ./vse_out/Debug/opt/packages/* ./vse_out/Release/opt/packages/ && \
65-
rm -fv ./vse_out/*/opt/packages/numpy-2*
65+
rm -fv ./vse_out/*/opt/packages/numpy-2* && \
66+
rm -fv ./vse_out/*/opt/packages/paddlepaddle-*
6667
env:
6768
QPT_Action: "True"
6869
shell: bash

backend/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from tools.constant import *
1818

1919
# 项目版本号
20-
VERSION = "2.0.1"
20+
VERSION = "2.0.2"
2121

2222
# 项目的base目录
2323
BASE_DIR = str(Path(os.path.abspath(__file__)).parent)

backend/interface/ch.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = 字幕区域
111111
RecSubLang = 识别字幕语言
112112
RecMode = 识别模式
113113
IllegalPathWarning = 【警告】程序运行中断!路径不合法!请不要将程序放入带有空格和中文的路径下!!!请修改程序路径名后重新运行程序
114+
GPUWarning = 【重要提示】请勿通过任务管理器监控或GPU占用率数值判断程序是否调用显卡资源。由于现代显卡的运算效率极高,通常可在每秒内处理上千张图像任务,出现低占用率属正常现象。如需验证硬件调用状态,请通过对比CPU版本与GPU版本的执行耗时差异进行判断,若两者运行时间相近再进行反馈。
114115
GPUSpeedUp = 使用GPU进行加速
115116
FrameCount = 帧数
116117
FrameRate = 帧率

backend/interface/en.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = Subtitle Area
111111
RecSubLang = Subtitle Language
112112
RecMode = Mode
113113
IllegalPathWarning = [Warning] The program is interrupted! The path is illegal! Please do not put the program in a path with spaces and Chinese! ! ! Please modify the program path name and re-run the program
114+
GPUWarning = [Important Notice] Do not use Task Manager monitoring or GPU utilization metrics to determine whether the program utilizes GPU resources. Modern graphics cards are designed for extreme computational efficiency, typically capable of processing thousands of image tasks per second, making low utilization rates a normal occurrence. To verify hardware resource allocation, please compare execution time differences between CPU and GPU versions. If the runtime durations are comparable, then proceed with feedback.
114115
GPUSpeedUp = Use GPU for acceleration
115116
FrameCount = Frame Count
116117
FrameRate = Frame Rate

backend/interface/es.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = Área de subtítulos
111111
RecSubLang = Idioma de subtítulos
112112
RecMode = Modo
113113
IllegalPathWarning = [Advertencia] ¡El programa se interrumpió! ¡La ruta es ilegal! ¡No coloque el programa en una ruta con espacios y caracteres chinos! Por favor, modifique el nombre de ruta del programa y vuelva a ejecutarlo.
114+
GPUWarning = [Aviso importante] No utilice el monitor del administrador de tareas ni las métricas de utilización de GPU para determinar si el programa está usando recursos gráficos. Las tarjetas gráficas modernas tienen una eficiencia computacional extrema, siendo capaces de procesar miles de imágenes por segundo, por lo que las bajas tasas de utilización son normales. Para verificar el uso de hardware, compare los tiempos de ejecución entre las versiones de CPU y GPU. Si los tiempos son similares, proporcione sus comentarios.
114115
GPUSpeedUp = Use GPU para aceleración
115116
FrameCount = Conteo de fotogramas
116117
FrameRate = Velocidad de fotogramas

backend/interface/japan.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = サブタイトル領域
111111
RecSubLang = サブタイトル言語
112112
RecMode = モード
113113
IllegalPathWarning = 【注意】プログラムは中断されました! パスが不正です! プログラムをスペースや中国語が含まれるパスに置かないでください!!! プログラムのパス名を修正してプログラムを再実行してください
114+
GPUWarning = [Aviso importante] No utilice el monitor del administrador de tareas ni las métricas de utilización de GPU para determinar si el programa está usando recursos gráficos. Las tarjetas gráficas modernas tienen una eficiencia computacional extrema, siendo capaces de procesar miles de imágenes por segundo, por lo que las bajas tasas de utilización son normales. Para verificar el uso de hardware, compare los tiempos de ejecución entre las versiones de CPU y GPU. Si los tiempos son similares, proporcione sus comentarios.
114115
GPUSpeedUp = GPUを使用して加速します
115116
FrameCount = フレーム数
116117
FrameRate = フレームレート

backend/interface/ko.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = 자막 영역
111111
RecSubLang = 자막 언어 인식
112112
RecMode = 인식 모드
113113
IllegalPathWarning = [경고] 프로그램이 중단되었습니다! 경로가 올바르지 않습니다! 공백과 한국어가 포함된 경로에 프로그램을 넣지 마세요! 경로 이름을 변경하고 프로그램을 다시 실행해주세요
114+
GPUWarning = [Aviso importante] No utilice el monitor del administrador de tareas ni las métricas de utilización de GPU para determinar si el programa está usando recursos gráficos. Las tarjetas gráficas modernas tienen una eficiencia computacional extrema, siendo capaces de procesar miles de imágenes por segundo, por lo que las bajas tasas de utilización son normales. Para verificar el uso de hardware, compare los tiempos de ejecución entre las versiones de CPU y GPU. Si los tiempos son similares, proporcione sus comentarios.
114115
GPUSpeedUp = 가속을 위해 GPU 사용
115116
FrameCount = 프레임 수
116117
FrameRate = 프레임 속도

backend/interface/vi.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ SubtitleArea = Khu vực phụ đề
111111
RecSubLang = Ngôn ngữ phụ đề
112112
RecMode = Chế độ
113113
IllegalPathWarning = [Cảnh báo] Chương trình bị gián đoạn! Đường dẫn không hợp lệ! Xin đừng để chương trình trong đường dẫn có dấu cách và tiếng Trung! ! ! Xin sửa tên đường dẫn chương trình và chạy lại chương trình
114+
GPUWarning = [Thông báo quan trọng] Không sử dụng trình theo dõi Task Manager hoặc chỉ số sử dụng GPU để đánh giá việc sử dụng tài nguyên đồ họa. Card đồ họa hiện đại có hiệu suất xử lý cực cao, thường xử lý được hàng ngàn hình ảnh mỗi giây, do đó tỷ lệ sử dụng thấp là hiện tượng bình thường. Để xác minh việc sử dụng phần cứng, vui lòng so sánh thời gian thực thi giữa phiên bản CPU và GPU. Chỉ phản hồi khi thời gian chạy của hai phiên bản gần như tương đương.
114115
GPUSpeedUp = Sử dụng GPU để tăng tốc
115116
FrameCount = Số khung hình
116117
FrameRate = Tốc độ khung hình

0 commit comments

Comments
 (0)