Code Monkey home page Code Monkey logo

pyro-nn-layers's People

Contributors

csyben avatar thehamsta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar

pyro-nn-layers's Issues

Install PYRO-NN-Layers through Anaconda?

I saw that to use PYRO-NN, it is required to build PYRO-NN-Layers into the Tensorflow package. I use Python and Tensorflow through Anaconda, and the building instructions use pip package.

Is there a way to build PYRO-NN-Layers through Anaconda on Windows? I am a python beginner, so sorry if the question is too dumb.

My system configurations are:

  • Windows 10.
  • Anaconda 3
  • Conda 4.7.11
  • Python 3.6

Thank you!

one biginner's problem

Excuse me, I just download the pyro-nn-layers code from this github , but I see a lot of โ€˜.cc โ€™ files in it. Do I need to run through these files first? I tried to run the related '.py' files in 'examples' in pyronn-master folder directly in PyCharm, but there are many errors.

Backprojector non-deterministically fails to allocate mem

I noticed, that when using the PyroNN Layers for training, sporadically the training aborts, because the layers dont seem to get the required memory. This error is displayed:

GPUassert: out of memory pyronn_layers/cc/kernels/cone_backprojector_3D_CudaKernel_hardware_interp.cu.cc 129

The responsible line of code in the pyronn-layers is here:

cudaArray *projArray;
static cudaChannelFormatDesc channelDesc = cudaCreateChannelDesc<float>();
gpuErrchk( cudaMalloc3DArray( &projArray, &channelDesc, projExtent, cudaArrayLayered ) );
auto pitch_ptr = make_cudaPitchedPtr( const_cast<float*>( sinogram_ptr ),
detector_size.x*sizeof(float),
detector_size.x,
detector_size.y

Then I noticed the comments describing exactly the problem I am experiencing (I believe):

/*************** WARNING ******************./
*
* Tensorflow is allocating the whole GPU memory for itself and just leave a small slack memory
* using cudaMalloc and cudaMalloc3D will allocate memory in this small slack memory !
* Therefore, currently only small volumes can be used (they have to fit into the slack memory which TF does not allocae !)
*
* This is the kernel based on texture interpolation, thus, the allocations are not within the Tensorflow managed memory.
* If memory errors occure:
* 1. start Tensorflow with less gpu memory and allow growth
* 2. switch to software-based interpolation.
*
* TODO: use context->allocate_tmp and context->allocate_persistent instead of cudaMalloc for the projection_matrices array
* : https://stackoverflow.com/questions/48580580/tensorflow-new-op-cuda-kernel-memory-managment
*
*/

Will this TODO be resolved anytime soon? I would really appreciate it and would love to help if I can.

Cheers,
Max

Any plans for TF 2.x ?

Hello, TF 2.0 was released today. Is there any plan to port PYRO-NN-Layers to the updated framework?

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.