Giter Club home page Giter Club logo

rpgmaker_llm_translator's Introduction

介绍

这是一个基于Mtool和Sakura模型的RPGMaker游戏本地翻译器
通过Mtool导入导出翻译文本,通过Sakura模型翻译日语文本
经测试支持的模型:Sakura v0.8/Sakura v0.9
建议使用Sakura v0.9b https://huggingface.co/SakuraLLM/Sakura-13B-LNovel-v0.9b-GGUF/tree/main

准备

首先参考Mtool文档完成对翻译文本的导出:Mtool
然后参考Sakura模型文档完成本地部署:Sakura模型本地部署教程

流程

确保Sakura服务器成功启动并监听http://127.0.0.1:8080

image

使用MTool启动游戏并导出待翻译的原文

image

复制项目内所有文件放置在Mtool导出的ManualTransFile.json同级目录下
在目录下打开windows终端\Powershell

安装库:

pip install -r requirements.txt

运行main.py

python main.py

程序会自动开始翻译同级目录下的ManualTransFile.json

image

每翻译100行会保存当前翻译进度,下次启动翻译器时会从中断位置继续翻译

翻译完成后通过Mtool加载翻译文件ManualTransFile.json即可完成翻译

rpgmaker_llm_translator's People

Contributors

absllk avatar changxvv avatar fang1121cs avatar fkiliver avatar

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.