Giter Site home page Giter Site logo

the-gatherer's Introduction

The-Gatherer-2.0

You can still access the previous version by changing the branch on Github.

This was made using YOLOv5 and OpenCV. The model is now comaptible with CPU and GPU and it detects automaticly the best option for your computer. You can load your custom YOLO models (exported to ONNX) by using your own .onnx file.

On how to use your own data set to train a custom model, for now I'ld recomend following this tutorial for custom training. https://www.youtube.com/watch?v=GRtgLlwxpc4. I'm also uploading very soon a simple guide to export your .pt model to .onnx so it can run in this version of the bot.

If you want to train and export your own custom onnx model you can follow the steps that are set up in the following Google Colab: https://colab.research.google.com/drive/19kVzBERhRwB1jywcKeJ3dALARNd5-dR7?usp=sharing

You can check out the rewritten version on C++ (with no UI) that also uses Onnx to run inference here: https://github.com/Riczap/The-Gatherer-Cpp

  • Known Issue: Trying to move the window of The Gatherer 2 while having the Bot Vision activated, will crash the program. (You can move the command prompt at any time without issues)

  • Note: The Bot and the Vision are independent, you can have the bot running without the Computer Vision function activated. The model is running on the background whenever you activate either of them.

  • Note: All of the parameters have default values, so you can leve them blank and it'll work fine.

  • Training Data (Demo): https://drive.google.com/drive/u/2/folders/17X_f17WpzoxHMURSj5QIZ4lMUWPImf5V

  • Showcase: Note that the following video is of the previous 1.0 version with an outdated GUI. https://www.youtube.com/watch?v=y669rc18ia4 Showcase

New Features

I've implemented some quality of live updates so it's easier to use for general purposes.

  • You can choose the resolution that you are currently using for your game manually

Resolution

  • You can add and select your custom models with a drop down menu

Models

  • You can now input your desired waiting time between the actions of the bot.

Just remember to click the Save changes button after you selected your custom parameters Save

Installation

To use the new version of The Gatherer you can install the dependencies either in your main python environment, using anaconda or as an executable file.

-Download Tutorial: https://www.youtube.com/watch?v=dljCXzuKTKo

Python

  1. Clone the repository on GitHub (Download the files).
  2. Open a console terminal and run the following command to install all of the dependencies: pip install -r requirements.txt

Conda

  1. Clone the repository on GitHub (Download the files).
  2. Install Anaconda: https://www.anaconda.com/products/distribution
  3. Create an Environment using the following command on the anaconda prompt: conda create -n myenv (you can choose any name you want for the env)
  4. Activate the environment using conda activate myenv and open the directory where you downloaded the source code for the bot. Run the following line to install all of the dependencies: pip install -r requirements.txt
  5. Now you can run the main.py file through the conda environment using python main.py

Executable

  1. Download and extract the zip file: https://drive.google.com/file/d/1HImNmd06msfE_RuhBxIzT-rLlXL6LCa5/view?usp=share_link
  2. Right click and create a shortcut of The Gatherer 2.exe file and move it to your desired location
  3. Remeber that you'll need to acces the models directory to add new custom models.

How to Add a Custom Model

Exporting to Onnx

I'm also finishing up a video tutorial explaining how to export your custom models. And here is a step by step guide on how to do it.

Adding the model to The Gatherer 2.0

  1. Once you've you custom model as a yolov5.onnx file you can proceede to create a text file with a matching name to the name of your model containing the name of your custom classes.

Text File

  1. Move both files into the models directory.

Feel free to use the code for your own projects!

If you have any issues and need assistance send me a message or post something on: Discord: WanderingEye#0330 Forum: https://www.unknowncheats.me/forum/usercp.php

the-gatherer's People

Contributors

riczap avatar wanderingeye0 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  avatar  avatar  avatar  avatar  avatar  avatar

the-gatherer's Issues

How did you get YOLO to detect?

Trying to create my own model on an ore but having trouble getting YOLO to detect anything. Just curious if you could share how many images you used to train your models or how you got YOLO to work...thanks a lot for sharing all this

issue

FileNotFoundError: [Errno 2] No such file or directory: 'models/custom_yolov5.txt'

How to run the program

Hello, I downloaded the program but I don’t understand how to launch the bot, I set the sliders to the right, collected the resources, saved them, and what should I do next so that it starts collecting on its own?

Tool not working

When I activate "Display bot's vision" and Gather resources (iron) , nothing happens on my game. The terminal displays the following lines, and here is my game screencap:
image
image
So, what's happening and how do I fix this?

Having problem with my own model

image
I having a problem when using my own model but having no problem with others. I add you on discord and very hope for your respond thanks

Same Object Issue

Installed for Python, got all the dependencies, etc.

Ran it, set my Albion to 1920x1080 windowed (I have a 1440p monitor), told it to go after checking vision.

All it does is keep clicking the same rock even if it's depleted. If I run around a bit it will click another rock then just keep clicking the same rock repeatedly.

What can I do?

download issue

cv2.error: OpenCV(4.7.0) D:\a\opencv-python\opencv-python\opencv\modules\dnn\src\onnx\onnx_importer.cpp:270: error: (-5:Bad argument) Can't read ONNX file: models/custom_yolov5.onnx in function 'cv::dnn::dnn4_v20221220::ONNXImporter::ONNXImporter'

I got this error can you help me?

Question about tiers

Hello,

I used your project to test out and it works with you example datas for T1 stone. For example I want to collect Tier3-4 stone, do I need to train it again or it will catch the similary and gather resources ?

install problem

Hey, when I try to install I get error: ModuleNotFoundError: No module named 'win32gui'
I dont know whether this is my problem on problem on your side, if its a problem on my side can you help me with installation please? My instagram is @sometechdudejak

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.