Spaces:
No application file
No application file
Update app.py
Browse files
app.py
CHANGED
@@ -14,10 +14,13 @@
|
|
14 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
# See the License for the specific language governing permissions and
|
16 |
# limitations under the License.
|
|
|
|
|
|
|
17 |
from huggingface_hub import hf_hub_download
|
18 |
hf_hub_download(repo_id="stabilityai/stable-diffusion-2-1-base", filename="v2-1_512-ema-pruned.ckpt")
|
19 |
-
|
20 |
-
|
21 |
import torch
|
22 |
torch.backends.cudnn.benchmark = False
|
23 |
import numpy as np
|
@@ -28,7 +31,7 @@ import torch
|
|
28 |
from tqdm.auto import tqdm
|
29 |
from PIL import Image
|
30 |
import torch
|
31 |
-
|
32 |
from typing import Callable, List, Optional, Union
|
33 |
from latent_blending import get_time, yml_save, LatentBlending, add_frames_linear_interp, compare_dicts
|
34 |
from stable_diffusion_holder import StableDiffusionHolder
|
|
|
14 |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15 |
# See the License for the specific language governing permissions and
|
16 |
# limitations under the License.
|
17 |
+
import os, sys
|
18 |
+
sys.path.append("/content/latentblending")
|
19 |
+
from movie_util import MovieSaver, concatenate_movies
|
20 |
from huggingface_hub import hf_hub_download
|
21 |
hf_hub_download(repo_id="stabilityai/stable-diffusion-2-1-base", filename="v2-1_512-ema-pruned.ckpt")
|
22 |
+
|
23 |
+
|
24 |
import torch
|
25 |
torch.backends.cudnn.benchmark = False
|
26 |
import numpy as np
|
|
|
31 |
from tqdm.auto import tqdm
|
32 |
from PIL import Image
|
33 |
import torch
|
34 |
+
|
35 |
from typing import Callable, List, Optional, Union
|
36 |
from latent_blending import get_time, yml_save, LatentBlending, add_frames_linear_interp, compare_dicts
|
37 |
from stable_diffusion_holder import StableDiffusionHolder
|