From a0f35f2a41b535c2914911ac4c737a3078d5ad37 Mon Sep 17 00:00:00 2001 From: DGX Date: Wed, 10 Jan 2024 08:47:35 +0000 Subject: [PATCH] moved examples --- README.md | 5 +++-- .../example2_multitrans.py => examples/multi_trans.py | 6 +++--- .../example1_standard.py => examples/single_trans.py | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) rename latentblending/example2_multitrans.py => examples/multi_trans.py (90%) rename latentblending/example1_standard.py => examples/single_trans.py (87%) diff --git a/README.md b/README.md index 2806407..a368308 100644 --- a/README.md +++ b/README.md @@ -23,10 +23,10 @@ Coming soon again :) ## Example 1: Simple transition ![](example1.jpg) -To run a simple transition between two prompts, run `example1_standard.py` +To run a simple transition between two prompts, see `examples/single_trans.py` ## Example 2: Multi transition -To run multiple transition between K prompts, resulting in a stitched video, run `example2_multitrans.py`. +To run multiple transition between K prompts, resulting in a stitched video, see `examples/multi_trans.py`. [View a longer example video here.](https://vimeo.com/789052336/80dcb545b2) @@ -124,6 +124,7 @@ With latent blending, we can create transitions that appear to defy the laws of * Inpaint support dropped (as it only makes sense for a single transition) # Coming soon... +- [ ] MacOS support - [ ] Gradio interface - [ ] Huggingface Space - [ ] Controlnet diff --git a/latentblending/example2_multitrans.py b/examples/multi_trans.py similarity index 90% rename from latentblending/example2_multitrans.py rename to examples/multi_trans.py index f37479b..e83cd0f 100644 --- a/latentblending/example2_multitrans.py +++ b/examples/multi_trans.py @@ -1,9 +1,9 @@ import torch import warnings -from blending_engine import BlendingEngine -from diffusers_holder import DiffusersHolder from diffusers import AutoPipelineForText2Image -from movie_util import concatenate_movies +from latentblending.movie_util import concatenate_movies +from latentblending.blending_engine import BlendingEngine +from latentblending.diffusers_holder import DiffusersHolder torch.set_grad_enabled(False) torch.backends.cudnn.benchmark = False warnings.filterwarnings('ignore') diff --git a/latentblending/example1_standard.py b/examples/single_trans.py similarity index 87% rename from latentblending/example1_standard.py rename to examples/single_trans.py index aa23d69..1467398 100644 --- a/latentblending/example1_standard.py +++ b/examples/single_trans.py @@ -1,8 +1,8 @@ import torch import warnings -from blending_engine import BlendingEngine -from diffusers_holder import DiffusersHolder from diffusers import AutoPipelineForText2Image +from latentblending.blending_engine import BlendingEngine +from latentblending.diffusers_holder import DiffusersHolder warnings.filterwarnings('ignore') torch.set_grad_enabled(False)