Skip to content
Davis edited this page Aug 29, 2018 · 2 revisions

Where is the main training loop?

The main loop is shared between different trainers:

The details are specified in the subclasses:

Where is the PWC Net model defined?

The top level definition is in this file:

The various components (i.e. context and estimator networks) are in subdirectories.

Where is the PWC Net loss defined?

The total loss (with regularization) is constructed in the main model file:

The implementation details are in a separate file:

Where are the dataset classes?

https://github.com/NeedsMorePie/interpolator/tree/master/data

How do you add a new Tensorflow CUDA op?

Take the warp op for example: https://github.com/NeedsMorePie/interpolator/tree/master/pwcnet/warp/native

There are 3 files in that folder, 2 source files and 1 cmake. If you read through these files it should be fairly straight forward. The root cmake file will automatically glob/find these subdirectory cmake files and add them to the build rules.

To use these ops in Python, create a wrapper like so: https://github.com/NeedsMorePie/interpolator/blob/master/pwcnet/warp/warp.py