Git Product home page Git Product logo

Comments (10)

Jonlysun avatar Jonlysun commented on May 18, 2024 3

hi, i checkouted this error carefully, and found that perhaps there was something wrong in "return" of function 'get_sampling_map'.
return {create_arrayN<float>(maps, {n_views, patch_height, patch_width, 2}), create_arrayN<float>(valid_depth_masks, {n_views, 1, patch_height, patch_width}), create_arrayN<float>(valid_map_masks, {n_views, 1, patch_height, patch_width})};
the return type should be 'std::tuple', i am not sure '{ }' can create a tuple, so i use 'std::make_tuple' instead, and it finally succeeded. the code is like this:
return std::make_tulpe(create_arrayN<float>(maps, {n_views, patch_height, patch_width, 2}), create_arrayN<float>(valid_depth_masks, {n_views, 1, patch_height, patch_width}), create_arrayN<float>(valid_map_masks, {n_views, 1, patch_height, patch_width}));

from freeviewsynthesis.

griegler avatar griegler commented on May 18, 2024 2

You can change in line 37 in common.h from {data.size()} to {long(data.size())}`. This should fix your error.

from freeviewsynthesis.

griegler avatar griegler commented on May 18, 2024

What system are you on, what compiler are you using? Could you maybe post your cmake output?

from freeviewsynthesis.

Jonlysun avatar Jonlysun commented on May 18, 2024

i am using Ubuntu 16.04.4 LTS. And this is output:
image

from freeviewsynthesis.

griegler avatar griegler commented on May 18, 2024

I suspect that your compiler version is too old, but I can not currently set up a similar env to test. Could you try to try a more recent compiler, not sure which version ships with ubuntu 16.04. Note, I tested only with Ubuntu 18.04 and macOS.

from freeviewsynthesis.

griegler avatar griegler commented on May 18, 2024

I see. That is due to the compiler version. A return {...} requires a C++17 compiler, if the compiler only supports C++11,14 you need to write std::make_tuple as you suggested.

from freeviewsynthesis.

avani17101 avatar avani17101 commented on May 18, 2024

hello, I am on a C++ 17 supported compiler, I still got that same error mentioned, I tried making tuple, it still gives me error.
Screenshot from 2020-12-04 19-15-12
@griegler @Jonlysun can you please help

from freeviewsynthesis.

visonpon avatar visonpon commented on May 18, 2024

Hello @griegler after compile it succesfully, I try g++ -std=c++11 main.cpp but got errors like below:

undefined reference to `Py_GetVersion'
undefined reference to `PyExc_ImportError'
undefined reference to `PyErr_Format'
undefined reference to `PyExc_ImportError'
undefined reference to `PyErr_SetString'
undefined reference to `PyExc_ImportError'
undefined reference to `PyErr_SetString'

from freeviewsynthesis.

griegler avatar griegler commented on May 18, 2024

@visonpon If you already compiled it sucessfully, why are you running g++?

from freeviewsynthesis.

visonpon avatar visonpon commented on May 18, 2024

@griegler got it, thanks~

from freeviewsynthesis.

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.