Git Product home page Git Product logo

cuda-gridsample-grad2's Introduction

Cuda-based grid sample implimentation with second order derivative support.

For the forward and backward pass it uses the pytorch version of grid sample. Only the second backward is implimented here.

Tested only with Pytorch 10.1 and 10.2

Reflection padding is not supported

Usage:

import cuda_gridsample as cu

cu.grid_sample_2d(image, optical, padding_mode='border', align_corners=True)
cu.grid_sample_3d(volume, optical, padding_mode='border', align_corners=True)

cuda-gridsample-grad2's People

Contributors

aliaksandrsiarohin avatar example123 avatar mherb avatar

Stargazers

Ng Kam Woh avatar Shenzhou Chen avatar Zexin He avatar Xin Huang avatar  avatar Rohit Jena avatar  avatar Ellis avatar Muhammed Kocabas avatar Edvard Grødem avatar Masanori Ogino avatar Ashish Sinha avatar Hakyeong Kim avatar Zongxin Yang avatar Slava Elizarov avatar Yiyu Zhuang avatar Sindre Yang avatar  avatar YiChenCityU avatar Youngju Na avatar cjeen avatar Zifan Shi avatar ZhiyuanthePony avatar I'm LZ avatar  avatar  avatar  avatar Baixin XU avatar Hu Wenbo avatar  avatar Weichuang Li avatar Mingjia Li avatar song avatar  avatar  avatar  avatar  avatar YarongLiu avatar  avatar ShahRukh Athar avatar Yongjia Ma avatar  avatar kiui avatar Mor avatar Alex Trevithick avatar  avatar yuzy avatar Zizhang Li avatar Xingyi He avatar Kerry Ji avatar Haotong LIN avatar Zhen Xu avatar  avatar  avatar Snow avatar lambdald avatar YeChongjie avatar Xusy2333 avatar NIRVANA avatar Pyjcsx avatar Binbin avatar  avatar Bencheng avatar Yuliang Xiu avatar Shaofei Wang avatar 爱可可-爱生活 avatar Willi Menapace avatar  avatar flan avatar  avatar Hollis-7 avatar Quan Meng avatar Boyang Deng avatar

Watchers

 avatar  avatar Ellis avatar

cuda-gridsample-grad2's Issues

error occurred when trying to save model

Hi, Siarohin. I'm using cuda_gridsample in my code to calculate the second backward of gridsample, but whenever i'm trying to save my torch model, an unexpected error always occur, i have tried torch.save() and dill.dump(), but neither of them ran successfully, do you have any idea what happened, any suggestions will be helpful.
Below are the error i encounted while running my code. I'm using python 3.9.13 and torch 1.10.0+cu113.
1
2

License

Hi @AliaksandrSiarohin,
thank you for this great project and your efforts on this! I was wondering under which license your code is available, since I could not find any information on this in the repo. Would you care to share any info on this and add a license to the repo?

About multi gpus

Thanks for your work! It really works on my single GPU!!! However, I found it can't converage in multi-gpus. Have you tested this code on multi-gpus?

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.