Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Moldoteck/MagicEraser

Repository files navigation

MagicEraser - Telegram Bot for removing objects from pictures
(削除) @MagicEraserBot (削除ここまで) - not working due to running cost
Just send two photos:
Bot can delete objects from your photos, just follow next steps:
1- Send original image
2- Edit that image by coloring what you want to remove(Telegram has an built-in function for this)
3- Send edited image
4- Wait for results
5- Use /new command to start again

And you should be good to go! Feel free to fork and submit pull requests. Thanks!

Environment variables

  • TOKEN — Telegram bot token
  • MONGO— URL of the mongo database

Also, please, consider looking at .env.sample.

License

MIT — use for any purpose. Would be great if you could leave a note about the original developers. Thanks!

Inspired from: https://github.com/Borodutch/telegram-bot-starter
Big thanks to https://github.com/saic-mdal/lama for amazing DeepLearning models Model and pre-processing code can be found here: https://github.com/Moldoteck/lama

Sponsor this project

AltStyle によって変換されたページ (->オリジナル) /