Giter Site home page Giter Site logo

alleniver / genshin_autoplay_domain Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 7eu7d7/genshin_autoplay_domain

0.0 1.0 0.0 861 KB

原神全自动刷秘境AI

Shell 0.51% C++ 1.39% Python 85.20% CSS 0.02% Makefile 0.07% Batchfile 0.08% Jupyter Notebook 12.73%

genshin_autoplay_domain's Introduction

介绍

本项目融合了目标检测,目标跟踪模型,以及一些传统cv算法。 全自动刷原神秘境,全程无需人工操作。

目标检测部分通过构建怪物目标检测数据集,用半监督方法学习(标注5%),为整个数据集标注伪标签。

注意

原神需要以 1920x1080 的分辨率运行,不支持其他分辨率。可以窗口化运行。

安装

首先安装基本依赖

pip install -r requirements.txt

安装mmcv-full

pip install openmim
mim install mmcv-full

安装vs2019或以上。

安装mmtracking

安装方法参考mmtracking

下载训练权重放入mmtracking/checkpoints/文件夹中

mmtracking训练权重

安装yolox

安装方法参考YOLOX

下载原神数据集训练权重放入yolox/ckpt/文件夹中

yolox训练权重

战斗策略配置

刷本战斗策略配置文件在control/script/文件夹内,目前有两个例子。 每个文件内可以配置多条战斗策略,每个策略设置一定冷却时间。 程序会按从上到下的优先级,运行最先冷却完的策略。

如果策略内添加了

type: break

字段,则这一策略具有最高优先级,只要冷却好就优先执行,可以打断其他正在运行的策略。

支持的指令

switch 4 #切换到4号位角色
delay i #等待i秒
key e #敲击键盘按键e
key down e #按下键盘按键e不放
key up e #抬起键盘按键e
mouse l i #按下左键i秒
mouse r i #按下右键i秒

刷本配置

cfgs/中配置刷本策略,其中有示例文件。

运行程序

以管理员模式启动命令行,运行程序:

python auto_play.py

genshin_autoplay_domain's People

Contributors

7eu7d7 avatar

Watchers

 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.