Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TF Functionality #137

Merged
merged 54 commits into from Sep 12, 2017
Merged

TF Functionality #137

merged 54 commits into from Sep 12, 2017

Conversation

fbcotter
Copy link
Contributor

Add new backend folder: 'tf', implementing the 1-D and 2-D transforms in tensorflow.

Updated docs to describe how to use these functions. Added test suite to verify functionality.

Modified the lowlevel colfilter, coldfilt, rowfilter, rowdfilt functions to
allow filters of any shape (tensor, np array or list). This makes it more like
the numpy implementation.

Wrote tests and confirmed they pass for current implementation.
Wrote new script for transform 2d
Added checks in other tf scripts to make them not run if tensorflow
is not installed.
Currently have to skip these tests as tensorflow can't pad more than half of
the width of an input.
In between qshift filtering, if the rows or cols weren't a multiple of 4, I was
adding the end row/end col twice, when the numpy implementation adds the first
row & end row/first row & end col.
Not yet passing the tests however
made it [batch, height, width, channels, 6] rather than
[batch, height, width, channels]
fbcotter and others added 24 commits June 1, 2017 08:58
* 'tf' of github.com:fbcotter/dtcwt:
  Removed splat from tf routines
  Fixed compatability import and removed splat from tests
  Added tf info to backends.rst
Instead of using map fn, put the channels into the batch dimensions, and do the
forward transform on a batch of single channel inputs.
no longer needs tf installed to create a class instance.
Fixed the Tensorflow backend's handling of Pyramids - made it align with the
numpy and opencl versions.

Added the unpack function the utils.
This now makes the forward method act exactly as the forward method from the
numpy backend. Handling 3 or 4d inputs is now handled solely by the
forward_channels method.
@rjw57
Copy link
Owner

rjw57 commented Sep 12, 2017

Tanks for this! I've manually fixed the merge conflict via commit 1c11bbd which you might want to check over. I'll let Travis and coveralls take it from here..

@coveralls
Copy link

coveralls commented Sep 12, 2017

Coverage Status

Coverage increased (+7.9%) to 67.696% when pulling 1c11bbd on fbcotter:tf into 41d9068 on rjw57:master.

@rjw57 rjw57 merged commit 7b84189 into rjw57:master Sep 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants