Skip to main content

PyTorch Lightning Optical Flow

Project description

PyTorch Lightning Optical Flow

GitHub CI python status GitHub CI pytorch status GitHub CI lightning status GitHub CI build status

Introduction

This is a collection of state-of-the-art deep model for estimating optical flow. The main goal is to provide a unified framework where multiple models can be trained and tested more easily.

The work and code from many others are present here. I tried to make sure everything is properly referenced, but please let me know if I missed something.

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.

What's new

- v0.4.1

- v0.4.0

Major update to support Lightning 2 (finally!). However, it also introduces breaking changes from the previous v0.3 code. See the details below.

- v0.3.2

- v0.3.1

- v0.3.0

Available models

Read more details about the models on https://ptlflow.readthedocs.io/en/latest/models/models_list.html.

Results

You can see a table with main evaluation results of the available models here. More results are also available in the folder docs/source/results.

Disclaimer: These results are the ones obtained by evaluating the available models in this framework in my machine. Your results may be different due to differences in hardware and software. I also do not guarantee that the results of each model will be similar to the ones presented in the respective papers or other original sources. If you need to replicate the original results from a paper, you should use the original implementations.

Getting started

Please take a look at the documentation to learn how to install and use PTLFlow.

You can also check the notebooks below running on Google Colab for some practical examples:

If you are using the previous v0.3.X code, then check the v0.3.2 documentation and the following example notebooks:

Licenses

The original code of this repository is licensed under the Apache 2.0 license.

Each model may be subjected to different licenses. The license of each model is included in their respective folders. It is your responsibility to make sure that your project is in compliance with all the licenses and conditions involved.

The external pretrained weights all have different licenses, which are listed in their respective folders.

The pretrained weights that were trained within this project are available under the CC BY-NC-SA 4.0 license, which I believe that covers the licenses of the datasets used in the training. That being said, I am not a legal expert so if you plan to use them to any purpose other than research, you should check all the involved licenses by yourself. Additionally, the datasets used for the training usually require the user to cite the original papers, so be sure to include their respective references in your work.

Contributing

Contribution are welcome! Please check CONTRIBUTING.md to see how to contribute.

Citing

BibTeX

@misc{morimitsu2021ptlflow,
  author = {Henrique Morimitsu},
  title = {PyTorch Lightning Optical Flow},
  year = {2021},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/hmorimitsu/ptlflow}}
}

Acknowledgements

  • This README file is heavily inspired by the one from the timm repository.
  • Some parts of the code were inspired by or taken from FlowNetPytorch.
  • flownet2-pytorch was also another important source.
  • The current main training routine is based on RAFT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ptlflow-0.4.1.tar.gz (781.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ptlflow-0.4.1-py3-none-any.whl (974.5 kB view details)

Uploaded Python 3

File details

Details for the file ptlflow-0.4.1.tar.gz.

File metadata

  • Download URL: ptlflow-0.4.1.tar.gz
  • Upload date:
  • Size: 781.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ptlflow-0.4.1.tar.gz
Algorithm Hash digest
SHA256 02e0bbc6ca55e939150f68ab1598e18ca3bd0c467baf4e3226dfdaa8763f3afe
MD5 a0c7332d905ec0bbae97c22a469aa0f6
BLAKE2b-256 b7b46c5d5276ccfa82883bcb9ceba81ce9a242be4eba6e1391a8e92292d47959

See more details on using hashes here.

File details

Details for the file ptlflow-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: ptlflow-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 974.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ptlflow-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 8dab7c5fcece03b6da4174bbcb4a8b42666a315cc9feb7338d5f74b34e753b94
MD5 f1447f1784a541f2cf60030e3266f7ec
BLAKE2b-256 66f6d92d24e5cc10862ac7b908324b44173f86736cc8d902dd50f21efabe5435

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page