Skip to content

Commit 6dfd95a

Browse files
authored
Merge pull request #1 from MasterHow/tidy
Update the code.
2 parents cfc73a4 + 4b825b5 commit 6dfd95a

39 files changed

Lines changed: 26033 additions & 4 deletions

README.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# CSFlow
2-
The implementaions of CSFlow.
2+
The implementaions of [CSFlow: Learning Optical Flow via Cross Strip Correlation for Autonomous Driving](https://arxiv.org/pdf/2202.00909.pdf).
33
We achieve state-of-the-art accuracy on KITTI-2015 flow benchmark.
44

55
![](results/compare.png)
@@ -9,13 +9,43 @@ We achieve state-of-the-art accuracy on KITTI-2015 flow benchmark.
99
python setup.py develop
1010
```
1111

12-
# Devs
13-
Hao Shi,YiFan Zhou
12+
# Pretrained Model
13+
The pretrained model that the paper used can be found there:
14+
```
15+
https://share.weiyun.com/5t6TadPB
16+
```
17+
18+
# Train and Eval
19+
To train, use the following command format:
20+
```
21+
python ./tools/train.py
22+
--model CSFlow
23+
--dataset Chairs
24+
--batch_size 1
25+
--name csflow-test
26+
--validation Sintel
27+
--gpus 0
28+
--num_steps 100
29+
--lr 0.0004
30+
--image_size 368 496
31+
--wdecay 0.0001
32+
```
33+
To eval, use the following command format:
34+
```
35+
python ./tools/eval.py
36+
--model CSFlow
37+
--restore_ckpt ./checkpoints/CSFlow-kitti.pth
38+
--eval_iters 24
39+
--validation KITTI
40+
--val_KITTI_root $YOUR_DATA_PATH$
41+
```
42+
For more details, please check the code or refer our [paper](https://arxiv.org/pdf/2202.00909.pdf).
1443

1544
# Folder Hierarchy
1645
\* local: you should create this folder in your local repository and these folders will not upload to remote repository.
1746
```
1847
├── data (local) # Store test/training data
48+
├── checkpoints (local) # Store the checkpoints
1949
├── opticalflow # All source code
2050
| ├─ api # Called by tools
2151
| ├─ core # Core code call by other directorys. Provide dataset, models ....
@@ -26,4 +56,8 @@ Hao Shi,YiFan Zhou
2656
├── work_dirs (local) # For developers to save thier own codes and assets
2757
```
2858

29-
# The Code is coming soon.
59+
# Devs
60+
Hao Shi,YiFan Zhou
61+
62+
63+
If you have any questions, welcome to send me an e-mail: haoshi@zju.edu.cn, and I will try my best to help you. =)

0 commit comments

Comments
 (0)