Code Monkey home page Code Monkey logo

yas's Introduction

Yas

Yet Another Genshin Impact Scanner
又一个原神圣遗物导出器

介绍

基于SVTR(基本上是MobileNetV3_Small + Transformer)字符识别模型,使用原神字体对原神中会出现的字符串进行训练,达到更高的速度和更精确的结果。相比CRNN,SVTR可以达到更小的体积及更好的识别率
导出结果可以导入分析工具(例如 莫娜占卜铺 )进行配装或者其他计算
由于使用了 Rust 进行编写,运行效率和文件体积都得到了很大的提升

相关资料

识别模型

SVTR原文使用了多个Local/Global Mixing,其中Global Mixing就是Transformer层,而根据PaddleOCR的代码,其SVTR识别模型也并未完全遵照SVTR原模型,而是骨干网络 + Transformer的结构
Yas同样采用PaddleOCR的做法,即MobileNetV3_Small + Global Mixing,相当于将原RNN替换为Transformer。

使用

  • 打开原神,并切换到背包页面,将背包拉到最上面
  • 下载单exe可执行文件,右键管理员运行
  • 扫描过程中,鼠标右键终止

注意

  • 默认4星以下圣遗物不扫描
  • 不是所有窗口比例都支持,推荐16:9的分辨率(如1600x900, 1920x1080, 3840x2160)
  • 扫描过程中不要对鼠标做任何操作

命令行使用

假设你知道如何使用命令行工具
查看选项

yas --help

只扫描五星圣遗物

yas --min-star=5

只扫描一行

yas --max-row=1

编译

# Linux下需要首先安装rustup以及mingw-w64,然后再安装对应的rust target,
rustup default stable
rustup target add x86_64-pc-windows-gnu
cargo build --release --locked --target=x86_64-pc-windows-gnu

训练

yas-train

反馈

  • Issue
  • QQ群:801106595

yas's People

Contributors

wormtql avatar jimmyyou avatar lencerf avatar ainopara avatar omico avatar amenomori avatar makisekurisu 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.