← Open Source
sniklaus

pytorch-pwc

a reimplementation of PWC-Net in PyTorch that matches the official Caffe version.

Model DevelopmentArchitecturePython
Open on GitHub
Momentum
+0stars in 24 hours0.0%
662
Stars
125
Forks
+0
This week
2
Contributors
Created 2018-07-16 · Updated 2026-10-02 · #15334 today
Top developers
sniklausEtienne66

sniklaus/pytorch-pwc is ranked 15,334 with 662 stars.

Same-category comparison

sniklaus/pytorch-pwc is ranked 15,334 among these 8 peers; pysentimiento/pysentimiento is ranked 15,333.

Same-category comparison
NameRankMetrics
scikit-learn-contrib/skope-rules15,321
Language:
Jupyter Notebook
Stars:
663
Forks:
106
Description:
machine learning with logical rules in Python.
anthropic-experimental/agentic-misalignment15,327
Language:
Python
Stars:
662
Forks:
153
johnmarktaylor91/torchlens15,329
Language:
Python
Stars:
662
Forks:
31
pysentimiento/pysentimiento15,333
Language:
Jupyter Notebook
Stars:
662
Forks:
77
Description:
A Python multilingual toolkit for Sentiment Analysis and Social NLP tasks.
NVlabs/GA3C15,340
Language:
Python
Stars:
661
Forks:
193
Description:
Hybrid CPU/GPU implementation of the A3C algorithm for deep reinforcement learning.
TIGER-AI-Lab/AnyV2V15,341
Language:
Jupyter Notebook
Stars:
661
Forks:
49
Description:
Code and data for "AnyV2V: A Tuning-Free Framework For Any Video-to-Video Editing Tasks" [TMLR 2024].
alexiglad/EBT15,342
Language:
Python
Stars:
661
Forks:
92
ali-vilab/Wan-Move15,343
Language:
Python
Stars:
661
Forks:
37
Description:
[NeurIPS 2025] Wan-Move: Motion-controllable Video Generation via Latent Trajectory Guidance.
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguagePython
CategoryModel Development
SubcategoryArchitecture
KeywordsVideo production
Stars662
Forks125
Contributors2
Created date2018-07-16
Updated date2026-10-02
Stars in 1 day0
Stars in 7 days0
Rank15,334
Previous rank15,152
Rank change-182
7-day stars rank14,938
Previous 7-day stars rank14,946
7-day stars rank change8
Total stars rank15,536
Previous total stars rank15,510
Total stars rank change-26
CountryUSA
README summary

pytorch-pwc This is a personal reimplementation of PWC-Net [1] using PyTorch. Should you be making use of this work, please cite the paper accordingly. Also, make sure to adhere to the licensing terms of the authors. Should you be making use of this particular implementation, please acknowledge it appropriately [2]. For the original version of this work, please see: Other optical flow implementations from me: pytorch-unflow, pytorch-spynet, pytorch-liteflownet background The authors of PWC-Net are

thankfully already providing a reference implementation in PyTorch. However, its initial version did not reach the performance of the original Caffe version. This is why I created this repositroy, in which I replicated the performance of the official Caffe version by utilizing its weights. The official PyTorch implementation has adopted my approach of using the Caffe weights since then, which is why they are all performing equally well now. Many people have reported issues with CUDA when trying to get

the official PyTorch version to run though, while my reimplementaiton does not seem to be subject to such problems. setup The correlation layer is implemented in CUDA using CuPy, which is why CuPy is a required dependency. It can be installed using or alternatively using one of the provided binary packages as outlined in the CuPy repository. usage To run it on your own pair of images, use the following command. You can choose between two models, please make sure

to see their paper / the code for more details. I am afraid that I cannot guarantee that this reimplementation is correct. However, it produced results identical to the Caffe implementation of the original authors in the examples that I tried. Please feel free to contribute to this repository by submitting issues and pull requests. comparison license As stated in the licensing terms of the authors of the paper, the models are free for non-commercial share-alike purpose. Please make

sure to further consult their licensing terms.

Frequently asked questions

How many stars and forks are recorded?

sniklaus/pytorch-pwc has 662 stars and 125 forks.

What is the repository rank?

sniklaus/pytorch-pwc is ranked 15,334.

What language and category are recorded?

sniklaus/pytorch-pwc has 662 stars, uses Python and belongs to Model Development.

Which repository is closest in rank?

sniklaus/pytorch-pwc is compared with pysentimiento/pysentimiento, ranked 15,333 with 662 stars.

README

pytorch-pwc

This is a personal reimplementation of PWC-Net [1] using PyTorch. Should you be making use of this work, please cite the paper accordingly. Also, make sure to adhere to the licensing terms of the authors. Should you be making use of this particular implementation, please acknowledge it appropriately [2].

For the original version of this work, please see: https://github.com/NVlabs/PWC-Net

Other optical flow implementations from me: pytorch-unflow, pytorch-spynet, pytorch-liteflownet

background

The authors of PWC-Net are thankfully already providing a reference implementation in PyTorch. However, its initial version did not reach the performance of the original Caffe version. This is why I created this repositroy, in which I replicated the performance of the official Caffe version by utilizing its weights.

The official PyTorch implementation has adopted my approach of using the Caffe weights since then, which is why they are all performing equally well now. Many people have reported issues with CUDA when trying to get the official PyTorch version to run though, while my reimplementaiton does not seem to be subject to such problems.

setup

The correlation layer is implemented in CUDA using CuPy, which is why CuPy is a required dependency. It can be installed using pip install cupy or alternatively using one of the provided binary packages as outlined in the CuPy repository.

usage

To run it on your own pair of images, use the following command. You can choose between two models, please make sure to see their paper / the code for more details.

python run.py --model default --one ./images/one.png --two ./images/two.png --out ./out.flo

I am afraid that I cannot guarantee that this reimplementation is correct. However, it produced results identical to the Caffe implementation of the original authors in the examples that I tried. Please feel free to contribute to this repository by submitting issues and pull requests.

comparison

license

As stated in the licensing terms of the authors of the paper, the models are free for non-commercial share-alike purpose. Please make sure to further consult their licensing terms.

references

[1]  @inproceedings{Sun_CVPR_2018,
         author = {Deqing Sun and Xiaodong Yang and Ming-Yu Liu and Jan Kautz},
         title = {{PWC-Net}: {CNNs} for Optical Flow Using Pyramid, Warping, and Cost Volume},
         booktitle = {IEEE Conference on Computer Vision and Pattern Recognition},
         year = {2018}
     }
[2]  @misc{pytorch-pwc,
         author = {Simon Niklaus},
         title = {A Reimplementation of {PWC-Net} Using {PyTorch}},
         year = {2018},
         howpublished = {\url{https://github.com/sniklaus/pytorch-pwc}}
    }
Nearby in the ranking
Similar items