File size: 1,737 Bytes
251e479
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/env bash

# inference GMFlow without refinement

# sintel

# only predict forward flow
CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/sintel_market_1 \
--output_path output/gmflow-norefine-sintel_market_1 \
--resume pretrained/gmflow_sintel-0c07dcb3.pth

# predict forward & backward flow
CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/sintel_market_1 \
--output_path output/gmflow-norefine-sintel_market_1 \
--pred_bidir_flow \
--resume pretrained/gmflow_sintel-0c07dcb3.pth


# predict forward & backward flow with forward-backward consistency check
CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/sintel_market_1 \
--output_path output/gmflow-norefine-sintel_market_1 \
--pred_bidir_flow \
--fwd_bwd_consistency_check \
--resume pretrained/gmflow_sintel-0c07dcb3.pth


# davis

CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/davis_breakdance-flare \
--output_path output/gmflow-norefine-davis_breakdance-flare \
--resume pretrained/gmflow_sintel-0c07dcb3.pth




# inference GMFlow with refinement

CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/davis_breakdance-flare \
--output_path output/gmflow-withrefine-davis_breakdance-flare \
--resume pretrained/gmflow_with_refine_sintel-3ed1cf48.pth \
--padding_factor 32 \
--upsample_factor 4 \
--num_scales 2 \
--attn_splits_list 2 8 \
--corr_radius_list -1 4 \
--prop_radius_list -1 1




CUDA_VISIBLE_DEVICES=0 python main.py \
--inference_dir demo/sintel_test_clean_market_1 \
--output_path output/gmflow-norefine-sintel_test_clean_market_1 \
--pred_bidir_flow \
--fwd_bwd_consistency_check \
--resume pretrained/gmflow_sintel-0c07dcb3.pth