https://github.com/jayfunc/magicremover
https://github.com/jayfunc/magicremover
colorization image-processing inpaint-anything lama llm python segment-anything yolo
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jayfunc/magicremover
- Owner: jayfunc
- Created: 2024-05-29T12:49:20.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-12T17:26:43.000Z (4 months ago)
- Last Synced: 2025-03-09T19:34:47.351Z (3 months ago)
- Topics: colorization, image-processing, inpaint-anything, lama, llm, python, segment-anything, yolo
- Language: Python
- Homepage:
- Size: 158 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Introduction
This is a graduate project for my undergraduate study.It aims to build an app that can be used to colour and repair images. Also, it includes some basic functions that an image editor will do.
See the brief intro video via [Bilibili](https://www.bilibili.com/video/BV13m421W7Zr/) in Chinese or [YouTube](https://www.youtube.com/watch?v=j_cjcSy7R-w) in English.
# Development
By default, this project uses PyTorch packages with CPU versions,
just in case you want to make it back to the CPU version,
run the following command line:
```commandline
pip install --force-reinstall torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cpu
```For GPU development, reinstall them by running:
```commandline
pip install --force-reinstall torch==2.1.1 torchvision==0.16.1 torchaudio==2.1.1 --index-url https://download.pytorch.org/whl/cu118
```The GPU version was tested successfully on NVIDIA GTX 1660 SUPER.
Look at [pytorch official website](https://pytorch.org/get-started/previous-versions/) for more detail.
Note that package `pillow` may be reinstalled with a new version
which can lead to an error while launching the app
after changing the torch version. To stop it from happening,
use the following command line to reinstall `pillow`:
```commandline
pip install --force-reinstall pillow==9.5.0
```