├── README.md ├── LICENSE └── FreeDrag_colab.ipynb /README.md: -------------------------------------------------------------------------------- 1 | 🐣 Please follow me for new updates https://twitter.com/camenduru
2 | 🔥 Please join our discord server https://discord.gg/k5BwmmvJJU
3 | 🥳 Please join my patreon community https://patreon.com/camenduru
4 | 5 | ## 🦒 Colab 6 | 7 | # 🚦 WIP 🚦 8 | 9 | | Colab | Info 10 | | --- | --- | 11 | [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/camenduru/FreeDrag-colab/blob/main/FreeDrag_colab.ipynb) | FreeDrag_colab 12 | 13 | ## Tutorial 14 | 15 | ## Main Repo 16 | https://github.com/LPengYang/FreeDrag 17 | 18 | ## Page 19 | https://lin-chen.site/projects/freedrag/ 20 | 21 | ## Paper 22 | https://arxiv.org/abs/2307.04684 23 | 24 | ## Output 25 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | This is free and unencumbered software released into the public domain. 2 | 3 | Anyone is free to copy, modify, publish, use, compile, sell, or 4 | distribute this software, either in source code form or as a compiled 5 | binary, for any purpose, commercial or non-commercial, and by any 6 | means. 7 | 8 | In jurisdictions that recognize copyright laws, the author or authors 9 | of this software dedicate any and all copyright interest in the 10 | software to the public domain. We make this dedication for the benefit 11 | of the public at large and to the detriment of our heirs and 12 | successors. We intend this dedication to be an overt act of 13 | relinquishment in perpetuity of all present and future rights to this 14 | software under copyright law. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 17 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 18 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 19 | IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR 20 | OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 21 | ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | For more information, please refer to 25 | -------------------------------------------------------------------------------- /FreeDrag_colab.ipynb: -------------------------------------------------------------------------------- 1 | { 2 | "cells": [ 3 | { 4 | "cell_type": "markdown", 5 | "metadata": { 6 | "id": "view-in-github" 7 | }, 8 | "source": [ 9 | "[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/camenduru/FreeDrag-colab/blob/main/FreeDrag_colab.ipynb)" 10 | ] 11 | }, 12 | { 13 | "cell_type": "code", 14 | "execution_count": null, 15 | "metadata": { 16 | "id": "NrgcDwZxgDOe" 17 | }, 18 | "outputs": [], 19 | "source": [ 20 | "%cd /content\n", 21 | "!git clone -b dev https://github.com/camenduru/FreeDrag\n", 22 | "%cd /content/FreeDrag/FreeDrag\n", 23 | "\n", 24 | "!pip install gradio\n", 25 | "\n", 26 | "!apt-get -y install -qq aria2\n", 27 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/bicycles.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o bicycles.pkl\n", 28 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/cars.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o cars.pkl\n", 29 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/cats.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o cats.pkl\n", 30 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/churches.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o churches.pkl\n", 31 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/dogs.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o dogs.pkl\n", 32 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/elephants.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o elephants.pkl\n", 33 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/faces.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o faces.pkl\n", 34 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/giraffes.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o giraffes.pkl\n", 35 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/horses.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o horses.pkl\n", 36 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/lions.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o lions.pkl\n", 37 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/metfaces.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o metfaces.pkl\n", 38 | "!aria2c --console-log-level=error -c -x 16 -s 16 -k 1M https://huggingface.co/camenduru/FreeDrag/resolve/main/parrots.pkl -d /content/FreeDrag/FreeDrag/checkpoints -o parrots.pkl\n", 39 | "\n", 40 | "!python FreeDrag_gradio.py" 41 | ] 42 | } 43 | ], 44 | "metadata": { 45 | "accelerator": "GPU", 46 | "colab": { 47 | "gpuType": "T4", 48 | "provenance": [] 49 | }, 50 | "kernelspec": { 51 | "display_name": "Python 3", 52 | "name": "python3" 53 | }, 54 | "language_info": { 55 | "name": "python" 56 | } 57 | }, 58 | "nbformat": 4, 59 | "nbformat_minor": 0 60 | } 61 | --------------------------------------------------------------------------------