WarpFusion
Latest public version:
If you find a public version elsewhere, before running as admin/root, make sure to check it for malware by comparing it to the latest notebook in this repo.
Greatly inspired by Cameron Smith's neural-style-tf
-
05.05.2023, v0.10 Video to AI Animation Tutorial For Beginners: Stable WarpFusion + Controlnet | MDMZ
-
11.05.2023, v0.11 How to use Stable Warp Fusion
-
13.05.2023, v0.8 Warp Fusion Local Install Guide (v0.8.6) with Diffusion Demonstration
-
14.05.2023, v0.12 Warp Fusion Alpha Masking Tutorial | Covers Both Auto-Masking and Custom Masking
-
23.05.2023, v0.12 STABLE WARPFUSION TUTORIAL - Colab Pro & Local Install
-
15.06.2023, v0.13 AI Animation out of Your Video: Stable Warpfusion Guide (Google Colab & Local Intallation)
-
17.06.2023, v0.14 Stable Warpfusion Tutorial: Turn Your Video to an AI Animation
-
21.06.2023, v0.14 Avoiding Common Problems with Stable Warpfusion
-
21.06.2023, v0.15 Warp Fusion: Step by Step Tutorial
-
04.07.2023, v0.15 Intense AI Video Maker (Stable WarpFusion Tutorial)
-
15.08.2023, v0.17 BEST Laptop for AI ( SDXL & Stable Warpfusion ) ft. RTX 4090 - Make AI Art FREE and FAST!
-
25.08.2023, ComfyWarp v0.1 WarpFusion: Warp and Consistency explanation in ComfyUI
-
2.09.2023, ComfyWarp v0.2 WarpFusion: ComfyWarp iteration 2.
-
3.09.2023, v0.16+ WarpFusion - Multiple Masked Prompts Guide
-
20.09.2023, v0.19 Warp Fusion Tutorial | Video to AI Video | Stable diffusion (Hindi)
-
10.10.2023, ComfyWarp v0.4 WarpFusion: ComfyWarp v0.4.2 (schedulers, flow_blend)
-
4.11.2023, ComfyWarp v0.5 WarpFusion: ComfyWarp v0.5 - FixedQueue
-
13.11.2023, v0.27 Stable WarpFusion v0.27 - Changelog
-
17.01.2024, v0.30 Stable WarpFusion v0.30 - Changelog
- Create a folder for WarpFusion. It's recommended to have a general folder for WarpFusion and subfolders for each version. Like
C:\code\WarpFusion\0.16.11\
for version 0.16.11 - Download install.bat and save it into your WarpFolder,
C:\code\WarpFusion\0.16.11\
in this example. - Run install.bat. It will download and install python, git, and create a virtual python environment called "env" inside our folder and install dependencies, required to run the notebook and jupyter server for local colab. When git install window appears, use the default settings. The installation will contiinue after you install git.
- Download run.bat and save it into your WarpFolder,
C:\code\WarpFusion\0.16.11\
in this example.
- Execute run.bat. It will activate the environment and start jupyter server.
- After the server has launched, go to https://colab.research.google.com
- Click File -> Upload Notebook and upload the *.ipynb file
- Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface.
- Select "connect to a local runtime" and paste the URL that will be generated below, which looks like "http://localhost:8888/?token=somenumbers"
- Click "Connect" and CTRL+F9 to run all cells.
-
Make sure that Ubuntu packages for CUDA toolkit and the latest NVIDIA utils are installed. Check using nvidia-smi command.
-
⚠️ Warning: Destructive Process Ahead⚠️ Clean Python Environment:
-
If you haven't followed best practices for Python virtual environments, you may want to clean your system.
-
Be warned, this is a destructive process and will remove all Python packages installed in the global environment.
pip freeze > uninstall.txt pip uninstall -r uninstall.txt sudo pip freeze > uninstall.txt sudo pip uninstall -r uninstall.txt rm -rf ~/.cache
-
-
Choose Directory:
- Open a terminal and navigate to your home directory or a directory of your choice.
cd $HOME or cd ~
-
Clone Repository:
- Clone the WarpFusion repository.
git clone https://github.com/WarpFusion/WarpFusion.git
-
Navigate to Folder:
- Enter the WarpFusion directory.
cd WarpFusion
-
Run the Linux Installer:
- Make the script executable and run it.
chmod +x linux_install.sh ./linux_install.sh
- Script will prompt you to enter a "version" to create your working folder, this can be any name you choose as at will append to "WarpFusion", ie: "WarpFusion0.23.11
- Navigate to your
WarpFusion(version)
folder and execute the run script:cd $HOME/WarpFusion(version) ./run.sh
- After the server has launched, go to https://colab.research.google.com
- Click File -> Upload Notebook and upload the *.ipynb file
- Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface.
- Select "connect to a local runtime" and paste the URL that will be generated below, which looks like "http://localhost:8888/?token=somenumbers"
- Click "Connect" and CTRL+F9 to run all cells.
- Delete your python virtual environment "warpenv" and re-run the running the script (backup your models, images and videos just in case).
cd $HOME/WarpFusion(version) rm -rf warpenv
- Create a folder for warp, for example
d:\warp
- Download Dockerfile and docker-compose.yml to
d:\warp
- Edit docker-compose.yml so that volumes point to your model, init_images, images_out folders that are outside of the warp folder. For example,
d:\models\:/content/models
will expose d:\models as /content/models to the notebook - Download and install docker from here - https://docs.docker.com/get-docker/
- Run
docker-compose up --build
inside the warp folder. - Go to https://colab.research.google.com
- Click File -> Upload Notebook and upload the *.ipynb file
- Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface.
- Select "connect to a local runtime" and paste the token that was generated in your docker container, but leave the url as localhost. Should look like "http://localhost:8888/?token=somenumbers"
- Click "Connect" and CTRL+F9 to run all cells.
- Run
docker-compose up
inside the warp folder. - Go to https://colab.research.google.com
- File -> open notebook -> open your previouslty uploaded notebook
- Click on the dropdown menu near "Connect" or "Reconnect" button on the topright part of the interface.
- Select "connect to a local runtime" and paste the token that was generated in your docker container, but leave the url as localhost. Should look like "http://localhost:8888/?token=somenumbers"
- Click "Connect" and CTRL+F9 to run all cells.
This notebook uses:
Stable Diffusion by CompVis & StabilityAI
K-diffusion wrapper by Katherine Crowson
RAFT model by princeton-vl
Consistency Checking (legacy) from maua
Color correction from pengbo-learn
Auto brightness adjustment from progrockdiffusion
AUTOMATIC1111: weighted prompt keywords, lora, embeddings, attention hacks
Reconstructed noise - based on changes suggested by briansemrau
ControlNet
TemporalNet, Controlnet Face and lots of other controlnets (check model list)
BLIP by SalesForce
RobustVideoMatting (as external cli package)
CLIP
FreeU Hack
Experimental ffmpeg Deflicker
Dw pose estimator
SAMTrack Segment-and-Track-Anything (with cli my wrapper and edits)
ComfyUI: sdxl controlnet loaders, control loras
animatediff base
animatediff wrapper for compvis models from comfyui-animatediff
IP Adapters implementation from sd-webui-controlnet
DiscoDiffusion legacy credits:
Original notebook by Somnai, Adam Letts and lots of other awesome people!
Turbo feature by Chris Allen
Improvements to ability to run on local systems, Windows support, and dependency installation by HostsServer
Warp and custom model support by Alex Spirin
If you find this code useful for your research, please cite:
@misc{Spirin2022,
author = {Spirin, Alex},
title = {warpfusion},
year = {2022},
publisher = {GitHub},
journal = {GitHub repository},
howpublished = {\url{https://github.com/Sxela/WarpFusion}},
}