Coder Social home page Coder Social logo

Comments (7)

yunshaochu avatar yunshaochu commented on June 3, 2024

不好意思,很少用GitHub,没想到点一下就会close issue……
我一开始以为是要用mode api来启动,但是无法找到服务器。
我看了你"[最简单的本地部署翻译服务流程]"的文章之后,发现你是用mode web启动的,但我修改为web模式后依旧不能翻译,只能用url在浏览器是一张一张上传本地图片;同时,翻译服务显示为空白。
请问这样要怎么解决呢?

from comicreadscript.

yunshaochu avatar yunshaochu commented on June 3, 2024

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.

yunshaochu avatar yunshaochu commented on June 3, 2024

90%N~22OF0VUPR$OF$BK6@6
) MSG%X6Y H26Y17G01 LS5
FAT_38%AF5TGSQMQ67V0DCX

"翻译服务"为空白,右侧控制台无报错。web服务可正常使用

from comicreadscript.

hymbz avatar hymbz commented on June 3, 2024

首先,github 是可以看到编辑历史的,所以赶紧先去重置 token

from comicreadscript.

hymbz avatar hymbz commented on June 3, 2024

然后,不管是 kaggle 还是 ngrok 我都完全没用过也没了解过,所以不是很懂。但之前也有人提到过相关的配置,你可以看下这个 issus 可能会有用?还有 这个评论 里的人就是用 ngrok 做的内网穿透,你可以去问问他?

from comicreadscript.

hymbz avatar hymbz commented on June 3, 2024

不过你控制台没报错有点奇怪,你点开几下翻译服务的选择框,看看有没有报错。

from comicreadscript.

yunshaochu avatar yunshaochu commented on June 3, 2024

谢谢提醒,已经重置token了。
我刚刚又重试了好几遍,控制台依旧没有报错,干脆建了一个代理服务器把请求转发到我本地,一步步调试,最后终于发现了原因:必须在ComicReadScript脚本所在的浏览器上,先打开一遍ngrok提供的url,才能正常使用服务器……
也就是这个问题纯粹是我不熟悉ngrok造成的(
谢谢你,已经可以正常使用了

from comicreadscript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.