Comments (7)
不好意思,很少用GitHub,没想到点一下就会close issue……
我一开始以为是要用mode api来启动,但是无法找到服务器。
我看了你"[最简单的本地部署翻译服务流程]"的文章之后,发现你是用mode web启动的,但我修改为web模式后依旧不能翻译,只能用url在浏览器是一张一张上传本地图片;同时,翻译服务显示为空白。
请问这样要怎么解决呢?
from comicreadscript.
kaggle上的笔记如下:
# Set up the environment.
!git clone https://github.com/zyddnys/manga-image-translator
%cd manga-image-translator/
!python -m pip install -r requirements.txt
!python -m pip install git+https://github.com/kodalli/pydensecrf.git
!pip install -q pyngrok
# 填写ngrok的token
ngrokToken = ""
if ngrokToken:
from pyngrok import conf, ngrok
conf.get_default().auth_token = ngrokToken
conf.get_default().monitor_thread = False
ssh_tunnels = ngrok.get_tunnels(conf.get_default())
if len(ssh_tunnels) == 0:
ssh_tunnel = ngrok.connect(5003)
print('address:'+ssh_tunnel.public_url)
else:
print('address:'+ssh_tunnels[0].public_url)
!python -m manga_translator --verbose --mode web --use-gpu
from comicreadscript.
"翻译服务"为空白,右侧控制台无报错。web服务可正常使用
from comicreadscript.
首先,github 是可以看到编辑历史的,所以赶紧先去重置 token
from comicreadscript.
然后,不管是 kaggle 还是 ngrok 我都完全没用过也没了解过,所以不是很懂。但之前也有人提到过相关的配置,你可以看下这个 issus 可能会有用?还有 这个评论 里的人就是用 ngrok 做的内网穿透,你可以去问问他?
from comicreadscript.
不过你控制台没报错有点奇怪,你点开几下翻译服务
的选择框,看看有没有报错。
from comicreadscript.
谢谢提醒,已经重置token了。
我刚刚又重试了好几遍,控制台依旧没有报错,干脆建了一个代理服务器把请求转发到我本地,一步步调试,最后终于发现了原因:必须在ComicReadScript脚本所在的浏览器上,先打开一遍ngrok提供的url,才能正常使用服务器……
也就是这个问题纯粹是我不熟悉ngrok造成的(
谢谢你,已经可以正常使用了
from comicreadscript.
Related Issues (20)
- [Bug]: cotrans api resize-crash HOT 2
- 绅士漫画不能用了 HOT 3
- [bug]卷轴模式下,手滑动后,会自动向下一小截或者向上一截 HOT 17
- 很喜欢PWA,有些小建议可以在这里反馈嘛? HOT 4
- 老哥,mangabz上使用好像有问题 HOT 8
- 百合会启用cloudflare后,下载功能失效 HOT 2
- 卷轴模式下自动适应宽度的bug HOT 45
- 老哥,可以适配两个网站的简易阅读模式吗? HOT 4
- 对于copymanga网站的部分漫画无法进入阅读模式 HOT 1
- kemono调用pwa加载失败 HOT 1
- 开源漫画阅读器:Kavita, 能够适配吗? HOT 2
- [Bug]: kemono.su fails to remember last page mode HOT 3
- 在 manhuagui.com 下載後,zip 內檔案的副檔名後面多出一堆字串 HOT 1
- [Feature Request]: Translate current page shortcut HOT 2
- 对于kemono.su,可否提供一个不加载原图的开关? HOT 4
- 自动裁剪白边 HOT 2
- 翻译问题 HOT 3
- 使用漫畫人瀏覽有問題 HOT 1
- 大佬,翻译可以增加gpt4的选项吗 HOT 1
- 希望支持http://www.92mh.com/
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from comicreadscript.