Git Product home page Git Product logo

Comments (2)

GY56723-debug avatar GY56723-debug commented on May 30, 2024

exactly, it appeared after i installed cnpy, before i installed cnpy, the error is :
/home/tandem/tandem-master/tandem/libdr/cuda_coarse_tracker/src/cuda_coarse_tracker.cpp:9:10: fatal error: cnpy.h: No such file or directory
9 | #include "cnpy.h"
| ^~~~~~~~
compilation terminated.

I don't know if this is related to my direct execution of the following order
sudo apt install libsuitesparse-dev libeigen3-dev libboost-all-dev

from tandem.

GY56723-debug avatar GY56723-debug commented on May 30, 2024

Exatly, The save function doesn't work, leave them out is OK ,then errors will disappear. The reason for this error is cnpy:: npy in the cnpy library I installed_ The save function and the author use cnpy:: npy_ The parameters of the name function are different, which may be caused by the version

template<typename T> void npz_save(std::string zipname, std::string fname, const T* data, const unsigned int* shape, const unsigned int ndims, std::string mode = "w", std::string order = "C")
 bool save = false;
//  if (save) {
//    float nfxfyaffLLb[6] = {(float) n, fx, fy, affLL.x, affLL.y, (float) ref_aff_g2l.y()};
//    cnpy::npy_save("cct_data/nfxfyaffLLb.npy", nfxfyaffLLb, {6}, 1);
//    float *buf = (float *) malloc(sizeof(float) * n);

//    cudaMemcpy(buf, pc_color, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/pc_color.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_u, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_u.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_v, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_v.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_dx, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_dx.npy", buf, {(unsigned long) n}), 1;

//    cudaMemcpy(buf, warped_dy, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_dy.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_idepth, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_idepth.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_residual, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_residual.npy", buf, {(unsigned long) n}, 1);

//    cudaMemcpy(buf, warped_weight, sizeof(float) * n, cudaMemcpyDeviceToHost);
//    cnpy::npy_save("cct_data/warped_weight.npy", buf, {(unsigned long) n}, 1);

//    if (n > 0.5 * 640 * 480)
//      exit(EXIT_SUCCESS);
//  }

from tandem.

Related Issues (20)

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.