Skip to content

Commit 44d3b8a

Browse files
authored
Merge pull request #36 from hmorimitsu/new_models2
New models2
2 parents 413b9ad + c1be215 commit 44d3b8a

File tree

99 files changed

+15142
-381
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+15142
-381
lines changed

.github/workflows/flake8.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
python-version: [3.6]
19+
python-version: ['3.10']
2020

2121
steps:
2222
- uses: actions/checkout@v2
2323
- name: Set up Python ${{ matrix.python-version }}
24-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ matrix.python-version }}
2727
- name: Install dependencies

.github/workflows/publish_pypi.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Set up Python
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: '3.x'
2626
- name: Install dependencies

.github/workflows/pytest.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/pytest_pip.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ jobs:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
python-version: [3.6]
21+
python-version: ['3.8']
2222

2323
steps:
2424
- uses: actions/checkout@v2
2525
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v2
26+
uses: actions/setup-python@v4
2727
with:
2828
python-version: ${{ matrix.python-version }}
2929
- name: Install dependencies
3030
run: |
3131
python -m pip install --upgrade pip
3232
python -m pip install build==0.4.0
33-
python -m pip install --upgrade setuptools wheel
33+
python -m pip install --upgrade setuptools==59.5.0 wheel
3434
python -m pip install --upgrade pytest
3535
- name: Install package and remove local dir
3636
run: |

.github/workflows/python.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: python
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: ['3.8', '3.9', '3.10']
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Add conda to system path
24+
run: |
25+
# $CONDA is an environment variable pointing to the root of the miniconda directory
26+
echo $CONDA/bin >> $GITHUB_PATH
27+
- name: Replace python
28+
uses: jacobtomlinson/gha-find-replace@v2
29+
with:
30+
find: "python>=3.8,<=3.10"
31+
replace: "python==${{ matrix.python-version }}"
32+
regex: false
33+
include: "environment.yml"
34+
- name: Install dependencies
35+
run: |
36+
conda env update --file environment.yml --name base
37+
python -m pip install --upgrade pip setuptools==59.5.0 wheel
38+
python -m pip install --upgrade pytest
39+
- name: Test with pytest
40+
run: |
41+
python -m pytest
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: pytorch-lightning
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
pytorch-lightning: [1.1.8, 1.2.10, 1.5.10, 1.6.5]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Add conda to system path
24+
run: |
25+
# $CONDA is an environment variable pointing to the root of the miniconda directory
26+
echo $CONDA/bin >> $GITHUB_PATH
27+
- name: Replace pytorch-lightning
28+
uses: jacobtomlinson/gha-find-replace@v2
29+
with:
30+
find: "pytorch-lightning>=1.1.0,<=1.6"
31+
replace: "pytorch-lightning==${{ matrix.pytorch-lightning }}"
32+
regex: false
33+
include: "environment.yml"
34+
- name: Install dependencies
35+
run: |
36+
conda env update --file environment.yml --name base
37+
python -m pip install --upgrade pip setuptools==59.5.0 wheel
38+
python -m pip install --upgrade pytest
39+
- name: Test with pytest
40+
run: |
41+
python -m pytest

.github/workflows/pytorch.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow will install Python dependencies, run tests with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: pytorch
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
pytorch: [1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0]
20+
21+
steps:
22+
- uses: actions/checkout@v3
23+
- name: Add conda to system path
24+
run: |
25+
# $CONDA is an environment variable pointing to the root of the miniconda directory
26+
echo $CONDA/bin >> $GITHUB_PATH
27+
- name: Replace pytorch
28+
uses: jacobtomlinson/gha-find-replace@v2
29+
with:
30+
find: "pytorch>=1.8.1,<=1.12"
31+
replace: "pytorch==${{ matrix.pytorch }}"
32+
regex: false
33+
include: "environment.yml"
34+
- name: Install dependencies
35+
run: |
36+
conda env update --file environment.yml --name base
37+
python -m pip install --upgrade pip setuptools==59.5.0 wheel
38+
python -m pip install --upgrade pytest
39+
- name: Test with pytest
40+
run: |
41+
python -m pytest

README.md

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# PyTorch Lightning Optical Flow
22

33
![GitHub CI flake8 status](https://github.com/hmorimitsu/ptlflow/actions/workflows/flake8.yml/badge.svg)
4-
![GitHub CI pytest status](https://github.com/hmorimitsu/ptlflow/actions/workflows/pytest.yml/badge.svg)
4+
![GitHub CI python status](https://github.com/hmorimitsu/ptlflow/actions/workflows/python.yml/badge.svg)
5+
![GitHub CI pytorch status](https://github.com/hmorimitsu/ptlflow/actions/workflows/pytorch.yml/badge.svg)
6+
![GitHub CI pytorch-lightning status](https://github.com/hmorimitsu/ptlflow/actions/workflows/pytorch-lightning.yml/badge.svg)
57
![GitHub CI pytest pip status](https://github.com/hmorimitsu/ptlflow/actions/workflows/pytest_pip.yml/badge.svg)
68
[![DOI](https://zenodo.org/badge/375416785.svg)](https://zenodo.org/badge/latestdoi/375416785)
79

@@ -13,6 +15,7 @@ The work and code from many others are present here. I tried to make sure everyt
1315

1416
This is still under development, so some things may not work as intended. I plan to add more models in the future, as well keep improving the platform.
1517

18+
- [What's new](#whats-new)
1619
- [Available models](#available-models)
1720
- [Results](#results)
1821
- [Getting started](#getting-started)
@@ -21,13 +24,31 @@ This is still under development, so some things may not work as intended. I plan
2124
- [Citing](#citing)
2225
- [Acknowledgements](#acknowledgements)
2326

27+
## What's new
28+
29+
### July 30, 2022 - v0.2.6
30+
31+
- Added new models:
32+
- CRAFT [https://arxiv.org/abs/2203.16896](https://arxiv.org/abs/2203.16896)
33+
- CSFlow [https://arxiv.org/abs/2202.00909](https://arxiv.org/abs/2202.00909)
34+
- FlowFormer [https://arxiv.org/abs/2203.16194](https://arxiv.org/abs/2203.16194)
35+
- GMFlow [https://arxiv.org/abs/2111.13680](https://arxiv.org/abs/2111.13680)
36+
- GMFlowNet [https://arxiv.org/abs/2203.11335](https://arxiv.org/abs/2203.11335)
37+
- Added support for AutoFlow dataset [https://arxiv.org/abs/2104.14544](https://arxiv.org/abs/2104.14544)
38+
- Fix Compatibility with Pytorch Lightning 1.6
39+
2440
## Available models
2541

42+
- CRAFT [https://arxiv.org/abs/2203.16896](https://arxiv.org/abs/2203.16896)
43+
- CSFlow [https://arxiv.org/abs/2202.00909](https://arxiv.org/abs/2202.00909)
2644
- DICL-Flow [https://arxiv.org/abs/2010.14851](https://arxiv.org/abs/2010.14851)
2745
- FastFlowNet [https://arxiv.org/abs/2103.04524](https://arxiv.org/abs/2103.04524)
46+
- FlowFormer [https://arxiv.org/abs/2203.16194](https://arxiv.org/abs/2203.16194)
2847
- FlowNet - [https://arxiv.org/abs/1504.06852](https://arxiv.org/abs/1504.06852)
2948
- FlowNet2 - [https://arxiv.org/abs/1612.01925](https://arxiv.org/abs/1612.01925)
3049
- GMA - [https://arxiv.org/abs/2104.02409](https://arxiv.org/abs/2104.02409)
50+
- GMFlow [https://arxiv.org/abs/2111.13680](https://arxiv.org/abs/2111.13680)
51+
- GMFlowNet [https://arxiv.org/abs/2203.11335](https://arxiv.org/abs/2203.11335)
3152
- HD3 - [https://arxiv.org/abs/1812.06264](https://arxiv.org/abs/1812.06264)
3253
- IRR - [https://arxiv.org/abs/1904.05290](https://arxiv.org/abs/1904.05290)
3354
- LCV - [https://arxiv.org/abs/2007.11431](https://arxiv.org/abs/2007.11431)

docs/source/_static/kitti_2012_epe_outlier-drop_kitti_sintel.html

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

docs/source/_static/kitti_2015_epe_outlier-drop_kitti_sintel.html

Lines changed: 11 additions & 11 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)