Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Tony-Lowe/RotationDrag
https://github.com/Tony-Lowe/RotationDrag
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/Tony-Lowe/RotationDrag
- Owner: Tony-Lowe
- License: apache-2.0
- Created: 2023-11-07T07:01:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T11:46:15.000Z (10 months ago)
- Last Synced: 2024-08-01T18:32:23.827Z (3 months ago)
- Language: Python
- Size: 28 MB
- Stars: 32
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-diffusion-categorized - [Code
README
RotationDrag: Point-based Image Editing with Rotated Diffusion Features
Minxing Luo
Wentao Cheng
Jian Yang
## Disclaimer
This is a research project, NOT a commercial product.
## Installation
It is recommended to run our code on a Nvidia GPU with a linux system. We have not yet tested on other configurations. Currently, it requires around 14 GB GPU memory to run our method.
To install the required libraries, simply run the following command:
```
conda env create -f environment.yaml
conda activate rotdrag
```## Run RotationDrag
To start with, in command line, run the following to start the gradio user interface:
```
python3 rot_ui.py
```Basically, it consists of the following steps:
1. train a LoRA
* Drop our input image into the left-most box.
* Input a prompt describing the image in the "prompt" field
* Click the "Use LoRA" button to train a LoRA given the input image before our algorithm.2. do "drag" editing
* Draw a mask in the left-most box to specify the editable areas.
* Click handle and target points in the middle box. Also, you may reset all points by clicking "Undo point".
* Click the "Run" button to run our algorithm. Edited results will be displayed in the right-most box.## Run diffusion version of Freedrag in our implementation
To start with, in command line, run the following to start the gradio user interface:
```
python3 drag_ui.py
```The following process is the same as RotationDrag.
## Acknowledgement
This work is inspired by the amazing DragDiffusion, and the code is largely borrowed from it. A huge shout-out to all the amazing open source diffusion models and libraries.