summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-04-20 12:49:11 +0200
committerJules Laplace <julescarbon@gmail.com>2018-04-20 12:49:11 +0200
commit84bb9e7c1208c366dbba361f3b260283e258d10b (patch)
tree717d9e32ef868cf41f2c227ecc512f75d00970ee
parenta93d524ea8428c0515e9abe227ba70d2793e170e (diff)
expand
-rwxr-xr-xrecursive.sh2
-rwxr-xr-xrun.sh2
-rw-r--r--test.py3
3 files changed, 4 insertions, 3 deletions
diff --git a/recursive.sh b/recursive.sh
index 464851b..daffba1 100755
--- a/recursive.sh
+++ b/recursive.sh
@@ -1,7 +1,7 @@
python test.py \
--dataroot /home/lens/Desktop/thumbs/woodscaled/A/train/ \
--name woodscaled_pix2pix \
- --start_img /home/lens/Desktop/thumbs/woodscaled/A/train/frame_1001.png \
+ --start_img /home/lens/Desktop/thumbs/woodscaled/A/train/frame_1002.png \
--how_many 2000 \
--model test \
--which_model_netG unet_256 \
diff --git a/run.sh b/run.sh
index 0187f61..0ab2164 100755
--- a/run.sh
+++ b/run.sh
@@ -23,7 +23,7 @@ dataset="randomcrops5k"
python test.py \
--dataroot "/home/lens/Desktop/thumbs/$dataset/A/train/" \
--name "$dataset" \
- --start_img "/home/lens/Desktop/thumbs/$dataset/A/train/frame_1003.png" \
+ --start_img "/home/lens/Desktop/thumbs/$dataset/A/train/frame_1004.png" \
--how_many 100 \
--model test \
--aspect_ratio 1.777777 \
diff --git a/test.py b/test.py
index 2e8863b..858db98 100644
--- a/test.py
+++ b/test.py
@@ -61,7 +61,8 @@ if __name__ == '__main__':
os.remove(render_dir + "frame_00000.png")
- cmd = ("/usr/bin/ffmpeg", "-i", render_dir + "frame_%05d.png", "-c:v", "libx264", "-vf", "fps=30", "-pix_fmt", "yuv420p", render_dir + opt.name + "_" + opt.experiment + ".mp4")
+
+ cmd = ("/usr/bin/ffmpeg", "-i", render_dir + "test_latest/images/frame_%05d_fake_B.png", "-c:v", "libx264", "-vf", "fps=30", "-pix_fmt", "yuv420p", render_dir + opt.name + "_" + opt.experiment + ".mp4")
process = subprocess.Popen(cmd, stdout=subprocess.PIPE)
output, error = process.communicate()