Git Product home page Git Product logo

coupledtps-opencv-dnn's Introduction

训练源码在 https://github.com/nie-lang/CoupledTPS 它的论文名称是《Semi-Supervised Coupled Thin-Plate Spline Model for Rotation Correction and Beyond》 发表在了顶级期刊 IEEE Transactions on Pattern Analysis and Machine Intelligence 上了 ,足以见得它的牛逼程度了。

onnx文件在百度云盘 链接: https://pan.baidu.com/s/1GQbXJ2LMhxHFn2-Q1JNBcw 提取码: bxsi

其中的上采样upsample和grid_sample,没有把这两个算子导入到onnx文件里的, 自己独立编写了C++程序实现了,输入和输出都是4维张量的Mat。在编写C++程序时,需要注意 对于四维Mat的索引访问像素值,不能使用at函数,能使用ptr函数,,而大于四维的Mat,既不能使用at,也不能使用ptr访问元素, 只能使用指针形式访问,例如float型的Mat, float* pdata = (float*)Mat.data; 并且在编写C++程序时发现一个坑,在4维张量转到RGB三通道彩图时,使用ptr函数的方式给像素点赋值,最后得到的结果图跟Python程序运行的结果图不一致。 但是使用指针形式给像素点赋值,最后得到的结果图跟Python程序运行的结果图就是一致的, 看来使用指针形式访问像素值是最稳妥不出错的方式了。这个坑在C++代码里的convert4dtoimage函数里,我在函数里有写注释。

coupledtps-opencv-dnn's People

Contributors

hpc203 avatar

Stargazers

夕阳 avatar  avatar  avatar  avatar DefTruth avatar RanceChen avatar Kyle avatar ChungTak avatar  avatar  avatar MaxMax avatar Moyan avatar Nitin Rai avatar

Watchers

Even avatar  avatar

Forkers

williamqf-ai

coupledtps-opencv-dnn's Issues

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.