Skip to content

Commit 21cd424

Browse files
authored
a demo for testing on a pair of images
1 parent f5c9277 commit 21cd424

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

run_a_pair.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
parser = argparse.ArgumentParser()
1111
parser.add_argument('--fp16', action='store_true', help='Run model in pseudo-fp16 mode (fp16 storage fp32 math).')
1212
parser.add_argument("--rgb_max", type=float, default=255.)
13+
1314
args = parser.parse_args()
1415

1516
# initial a Net
@@ -41,4 +42,4 @@ def writeFlow(name, flow):
4142

4243

4344
data = result.data.cpu().numpy().transpose(1, 2, 0)
44-
writeFlow("/home/hjj/flownet2-master/data/FlyingChairs_examples/0000007-img.flo", data)
45+
writeFlow("/home/hjj/flownet2-master/data/FlyingChairs_examples/0000007-img.flo", data)

0 commit comments

Comments
 (0)