dmMaze / BallonsTranslator

深度学习辅助漫画翻译工具, 支持一键机翻和简单的图像/文本编辑 | Yet another computer-aided comic/manga translation tool powered by deeplearning
GNU General Public License v3.0
2.49k stars 172 forks source link

经常报错退出 #390

Closed huimieba closed 6 months ago

huimieba commented 6 months ago

内容: [WARNING] module_manager:inpaint:633 - Waiting for inpainting to finish QPixmap::scaled: Pixmap is a null pixmap Traceback (most recent call last): File "D:\GAL\BallonsTranslator-1.4.0\ui\canvas.py", line 751, in on_create_contextmenu self.on_paste(pos.toPointF()) ^^^^^^^^^^^^ AttributeError: 'QPoint' object has no attribute 'toPointF'

这个怎么解决

dmMaze commented 6 months ago

操作系统, pyqt和程序版本是啥

huimieba commented 6 months ago

操作系统, pyqt和程序版本是啥

win11x64,python-3.11.4-amd64,版本是1.4.0

dmMaze commented 6 months ago

操作系统, pyqt和程序版本是啥

win11x64,python-3.11.4-amd64,版本是1.4.0

我是说pyqt版本...还是把启动时的完整log贴上来吧

huimieba commented 6 months ago

操作系统, pyqt和程序版本是啥

win11x64,python-3.11.4-amd64,版本是1.4.0

我是说pyqt版本...还是把启动时的完整log贴上来吧

D:\GAL\BallonsTranslator-1.4.0>cd D:\GAL\BallonsTranslator-1.4.0\ py version: 3.11.4 (tags/v3.11.4:d2340ef, Jun 7 2023, 05:45:37) [MSC v.1934 64 bit (AMD64)] py executable: D:\python\python.exe version: 1.4.0 branch: dev Commit hash: [INFO ] config:load_textstyle_from:174 - Text style loaded from D:\GAL\BallonsTranslator-1.4.0\config/textstyles\default.json [INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2 [INFO ] launch:main:200 - set display language to zh_CN [INFO ] module_manager:on_finish_settranslator:801 - Translator set to ChatGPT [INFO ] module_manager:on_finish_setinpainter:793 - Inpainter set to aot [INFO ] module_manager:on_finish_setocr:786 - OCR set to mit48px_ctc [INFO ] module_manager:on_finish_setdetector:780 - Text detector set to ctd

dmMaze commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

好,我到时候看看还有没有问题

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

dmMaze commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

好了,删除之后确实是显示使用pyqt6

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

谢谢大佬指点

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

dmMaze commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

好的

huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

Traceback (most recent call last): File "D:\GAL\BallonsTranslator-1.4.0\ui\scenetext_manager.py", line 880, in onTransWidgetHoverEnter blk_item = self.textblk_item_list[idx]


IndexError: list index out of range

但是换了pyqt6还是会报错
dmMaze commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

Traceback (most recent call last): File "D:\GAL\BallonsTranslator-1.4.0\ui\scenetext_manager.py", line 880, in onTransWidgetHoverEnter blk_item = self.textblk_item_list[idx] ~~~~~~^^^^^ IndexError: list index out of range

但是换了pyqt6还是会报错

你用的是最新版吗, 你用的好像是没.git的, 这里下载代码覆盖一下

截屏2024-03-03 17 25 24
huimieba commented 6 months ago

[INFO ] launch:main:172 - QT_API: pyqt5, QT Version: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

Traceback (most recent call last): File "D:\GAL\BallonsTranslator-1.4.0\ui\scenetext_manager.py", line 880, in onTransWidgetHoverEnter blk_item = self.textblk_item_list[idx] ~~~~~~^^^^^ IndexError: list index out of range 但是换了pyqt6还是会报错

你用的是最新版吗, 你用的好像是没.git的, 这里下载代码覆盖一下 截屏2024-03-03 17 25 24

好的,我试试

huimieba commented 6 months ago

[信息] launch:main:172 - QT_API: pyqt5, QT 版本: 5.15.2

目前windows上只推荐pyqt==6.4.2: pip install PyQt6==6.4.2

他说我安装了,但是我打开还是pyqt5,是要在哪个文件切换吗

那你把它卸载试试

还有个问题,就是那个图像修复的脚本放在哪里,我想顺便看看他们有什么区别

如果你是说源码在 modules/inpaint/base.py,如果是程序里在那个画板界面

回溯(最近一次调用):文件“D:\GAL\BallonsTranslator-1.4.0\ui\scenetext_manager.py”,第 880 行,在 onTransWidgetHoverEnter blk_item = self.textblk_item_list[idx] ~~~~~~^^^^^ IndexError:列出索引超出范围 但是换了pyqt6还是会报错

你用的是最新版吗, 你用的好像是没.git的, 这里下载代码覆盖一下 截屏2024-03-03 17 25 24

大佬我这里很奇怪,我手动框选文本编辑后点击ocr抹字并翻译,但是只有抹字启动并且成功,其他两个好像都没有启动(run的时候倒是有动,但是难免有几个没有提取到)

dmMaze commented 6 months ago

大佬我这里很奇怪,我手动框选文本编辑后点击ocr抹字并翻译,但是只有抹字启动并且成功,其他两个好像都没有启动(run的时候倒是有动,但是难免有几个没有提取到)

框选的话OCR只建议用manga_ocr

huimieba commented 6 months ago

大佬我这里很奇怪,我手动框选文本编辑后点击ocr抹字并翻译,但是只有抹字启动并且成功,其他两个好像都没有启动(run的时候倒是有动,但是难免有几个没有提取到)

框选的话OCR只建议用manga_ocr

好的,换了manga_ocr确实能识别并翻译了

huimieba commented 6 months ago

大佬我这里很奇怪,我手动框选文本编辑后点击ocr抹字并翻译,但是只有抹字启动并且成功,其他两个好像都没有启动(run的时候倒是有动,但是难免有几个没有提取到)

框选的话OCR只建议用manga_ocr

Traceback (most recent call last): File "D:\GAL\BallonsTranslator-dev\ui\scenetext_manager.py", line 874, in onTransWidgetHoverEnter blk_item = self.textblk_item_list[idx]


IndexError: list index out of range
还是会有这种报错