summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-11-18 22:10:02 +0100
committerJules Laplace <julescarbon@gmail.com>2018-11-18 22:10:02 +0100
commitca9029b7ddce65880ee65ae465e9a523206323d2 (patch)
tree3555e658c7ba97ee674bf41a795ba14963c664ca
parent952ba41613ac748c8a1e8192e15087cdeea17e41 (diff)
filenames
-rw-r--r--crop_frames.py2
-rw-r--r--test.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/crop_frames.py b/crop_frames.py
index ee879a3..8314816 100644
--- a/crop_frames.py
+++ b/crop_frames.py
@@ -8,7 +8,7 @@ from PIL import Image
parser = argparse.ArgumentParser()
parser.add_argument('--step', default=256, type=int)
parser.add_argument('--overlap', default=4, type=int)
-parser.add_argument('--scale', default=1, type=int)
+parser.add_argument('--scale', default=4, type=int)
parser.add_argument('cmd', metavar='crop', help='Command')
parser.add_argument('dir', metavar='dir', help='Directory to process')
args = parser.parse_args()
diff --git a/test.py b/test.py
index 0db3767..bb181ed 100644
--- a/test.py
+++ b/test.py
@@ -57,7 +57,7 @@ def process_dir(v):
out_H = sess.run(GH, feed_dict={L: in_L, is_train: False})
out_H = np.clip(out_H, 0, 1)
- Image.fromarray(np.around(out_H[0,0]*255).astype(np.uint8)).save('./results/{}L/L/{}/Frame{:03d}.png'.format(args.L, scene_name, i+1))
+ Image.fromarray(np.around(out_H[0,0]*255).astype(np.uint8)).save('./results/{}L/L/{}/frame_{:03d}.png'.format(args.L, scene_name, i+1))
def G(x, is_train):
# shape of x: [B,T_in,H,W,C]