Giter VIP home page Giter VIP logo

stable-diffusion-webui-prompt-translator's People

Contributors

butaixianran avatar fai-9 avatar hrach333 avatar rapidrabbit76 avatar wfjsw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stable-diffusion-webui-prompt-translator's Issues

Question on other api

Add yandex api. ran into a problem when translating strings of more than 47 characters api returns the same text. unable to use others

关于Kitchen主题的适配问题

WebUI的Kitchen theme(个人觉得是比较好的一款主题),顶端的快捷栏放到了左侧,[Prompt-Translator]在Kitchen主题下的显示有些问题,希望能适配一下,谢谢!

kitchen

DeepL翻译问题

DeepL api申请需要pro账户,需要国外的信用卡,很难实现,但是如果已经有deepl api地址了(比如 http://127.0.0.1/translate) 怎么使用。

Request
Method: POST
Path: /translate
Content-Type: application/json
{
"text": "text to be translated",
"source_lang": "auto",
"target_lang": "ZH"
}
language supported:

Response
Content-Type: application/json

{
"code": 200,
"msg": "only if there is an error",
"data": "translate result"
}

languages from/to support

request_link = trans_providers["baidu"]["url"]+"?q="+text+"&from=en&to=zh&appid="+app_id+"&salt="+salt+"&sign="+sign_md5

currently, from/to is fixed, can you support manual select options.

Thanks,
sxlwzl

Add AI translate

I have added AI translation to my fork, Helsinki-NLP https://huggingface.co/Helsinki-NLP

But I also added a language selection item there.
you can use a multi model for translation, I just don't know how good it is.
you can use it without additional requests through various API.
For my language it works quite well.
Why didn't you go down this path? because sd uses torch and adding it was not a problem.
I haven't fully tested it yet, but I haven't found any bugs on the current commit..

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.