GithubHelp home page GithubHelp logo

jgorgenucsd / corr_tf Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 13.0 27 KB

An implementation of the FlowNetC correlation layer in tensorflow

License: Other

CMake 1.73% Python 35.74% C++ 38.32% Cuda 23.82% C 0.40%

corr_tf's Introduction

corr_tf

An implementation of the FlowNetC correlation layer in tensorflow

The FlowNetC architecture (https://arxiv.org/abs/1504.06852) uses a novel cross correlation layer This is an implementation of that cross correlation layer in tensorflow, with CUDA support.

The function correlation_layer.corr expects two arguments, 4 dim tensors of size (batch_size,height,width,num_channels)

REQUIRES: Tensorflow >= 1.1, CUDA >= 8.0, CMAKE >= 2.8

BUILDING:

$ mkdir build

$ cd build

$ cmake ..

$ make

TESTING:

$ python correlation_tests.py

corr_tf's People

Contributors

jgorgenucsd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

corr_tf's Issues

About video memory of get_correlation_layer in flownet.py

Hello, here I met such issues: I use your implementation in my own code ,my displacement value set 20, and stride set 1,I will get OOM error, if I decrease the two values, the OOM error disappears. May I ask if there is another implementation to avoid the video memory overflow issues.

1D Correlation for Stereo Disparity Estimation

Hi, I am quite new to TensorFlow. I was wondering, why do we need CUDA implementation for this, I mean can't we code a correlation function using Python / TensorFlow APIs?

Also, for performing 1D correlation operation in case of stereo disparity estimation, is it okay to just compute dot products of corresponding elements of left / right feature maps (kernel size is thus, 1x1)?

./build/libcorrelation.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

After "cmake .." and "make", when I run "python correlation_tests.py ", it reports error:

Traceback (most recent call last):
File "correlation_tests.py", line 11, in
import correlation_layer as cl
File "/home/yujiao/code/crossview_localisation/crop/corr_tf/correlation_layer.py", line 2, in
correlation_module = tf.load_op_library("./build/libcorrelation.so")
File "/home/yujiao/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/load_library.py", line 56, in load_op_library
lib_handle = py_tf.TF_LoadLibrary(library_filename)
tensorflow.python.framework.errors_impl.NotFoundError: ./build/libcorrelation.so: undefined symbol: _ZTIN10tensorflow8OpKernelE

May I ask what I can do in this case?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.