Giter Site home page Giter Site logo

hunterassociation / toanime Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lmcsu/qq-neural-anime-tg

0.0 0.0 0.0 601 KB

A Telegram bot that converts your photos to 2D anime art via the new AI made by QQ

JavaScript 11.24% TypeScript 88.76%

toanime's Introduction

What is this

A Telegram bot for making anime-styled pictures and videos from your source.

It's a simple bridge between Telegram and https://h5.tu.qq.com/web/ai-2d/cartoon/index

Demo: https://t.me/qq_neural_anime_bot

Example

Running your own bot

You need to have Node.js and NPM installed.

Create your bot with https://t.me/BotFather and obtain its token.

Clone this repo and:

  • run npm install
  • copy config.example.ts to config.ts
  • put your bot's token from BotFather into config.ts
  • run npm start

Mode

There's option mode in config.ts which currently takes two values:

  • DIFFERENT_DIMENSION_ME - default one, has rate limits, could generate only double compared images.
  • AI_PAINTING_ANIME - a little hack, has rate limits (already) and lets you also generate videos and single images that have better quality than combined ones. Seems like it works only with Chinese proxies.
  • AIGCSDK_AI_PAINTING_ANIME - another hack that generates single images much faster and has lower rate limits (yet).

Remember that all modes are unstable and their behavior may change at any time!

Proxies

In some countries the AI doesn't work at all so if it is your case you have to use some proxy.

Seems like Chinese proxies are the best. But not from Taiwan or Hong Kong, try Beijing for example.

It's almost impossible to find free alive proxies. Don't waste your time searching and just buy it somewhere.

Notes

  • Probably the whole thing is going to break soon anyway.
  • Fork it and make your own version, because I don't think that I'm going to support it in the future.
  • Contact me at Telegram: https://t.me/royvolkov

Upgrading

Don't forget to always run npm install

from 3.x to 4.x

  • change your 'mode' in config.ts to a new one
  • 'parallelRequests' is not optional anymore

from 2.x to 3.x

  • config.ts file structure has been changed completely, update it according to the new config.example.ts

from 1.x to 2.x

  • support for .env files dropped, you have to move to the config.ts file

toanime's People

Contributors

lmcsu avatar hunterassociation avatar nevzra 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.