Skip to content

racovik/autocatch

Repository files navigation

AutoCatch

  • Autocatch using Pokemon Classifier with Torch using embeddings
  • Requires Python>=3.12

termux setup

pkg update && pkg upgrade -y
pkg install python-torch python-torchvision
git clone https://github.com/racovik/autocatch.git 
cd autocatch
pip install -r requirements.txt

configs

nano config.py
token: str = ""
guild_id: int = 

download model

mkdir -p models && curl -L -o models/classifier.pt https://github.com/racovik/autocatch/releases/download/v1.1.0/classifier.pt

run

python discord_bot.py

windows setup

install git

winget install --id Git.Git -e --source winget

Install python

Install torch and requirements

if you have an Nvidia card
| CUDA Version | Supported GPUs |
|-------------|------------------|
| **12.6** | Maxwell and newer (GTX 9xx/10xx/20xx/30xx/40xx/50xx) with limitações |
| **12.8** | Turing and newer with official support, including Blackwell |
| **13.0** | Turing and newer officially (GTX 16xx/20xx/30xx/40xx/50xx) |

12.6

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126

12.8

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu128

13.0

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu130

pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip3 install -r requirements.txt

download model

mkdir -p models && curl -L -o models/pokerealmac_v1.0.pt https://github.com/racovik/autocatch/releases/download/v1.0.0/classifier.pt

create config.py

token: str = "TOKEN_HERE" 
guild_id: int = GUILD_ID_HERE

run

python discord_bot.py