Spaces:
Runtime error
Runtime error
Added some credits, cleaned up comments
Browse files- generate_videos.py +0 -18
- styleclip/styleclip_global.py +6 -0
generate_videos.py
CHANGED
|
@@ -1,21 +1,3 @@
|
|
| 1 |
-
'''
|
| 2 |
-
Tool for generating editing videos across different domains.
|
| 3 |
-
|
| 4 |
-
Given a set of latent codes and pre-trained models, it will interpolate between the different codes in each of the target domains
|
| 5 |
-
and combine the resulting images into a video.
|
| 6 |
-
|
| 7 |
-
Example run command:
|
| 8 |
-
|
| 9 |
-
python generate_videos.py --ckpt /model_dir/pixar.pt \
|
| 10 |
-
/model_dir/ukiyoe.pt \
|
| 11 |
-
/model_dir/edvard_munch.pt \
|
| 12 |
-
/model_dir/botero.pt \
|
| 13 |
-
--out_dir /output/video/ \
|
| 14 |
-
--source_latent /latents/latent000.npy \
|
| 15 |
-
--target_latents /latents/
|
| 16 |
-
|
| 17 |
-
'''
|
| 18 |
-
|
| 19 |
import os
|
| 20 |
import argparse
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import argparse
|
| 3 |
|
styleclip/styleclip_global.py
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
import torch
|
| 3 |
from tqdm import tqdm
|
|
|
|
| 1 |
+
'''
|
| 2 |
+
Code adapted from Stitch it in Time by Tzaban et al.
|
| 3 |
+
https://github.com/rotemtzaban/STIT
|
| 4 |
+
'''
|
| 5 |
+
|
| 6 |
+
|
| 7 |
import numpy as np
|
| 8 |
import torch
|
| 9 |
from tqdm import tqdm
|