Comments (10)
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.
You can change in line 37 in common.h
from {data.size()}
to {long(data.size())}`. This should fix your error.
from freeviewsynthesis.
What system are you on, what compiler are you using? Could you maybe post your cmake output?
from freeviewsynthesis.
i am using Ubuntu 16.04.4 LTS. And this is output:
from freeviewsynthesis.
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.
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.
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.
@griegler @Jonlysun can you please help
from freeviewsynthesis.
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.
@visonpon If you already compiled it sucessfully, why are you running g++
?
from freeviewsynthesis.
@griegler got it, thanks~
from freeviewsynthesis.
Related Issues (20)
- How to change the dense outputs put from colmap into those in dataset. HOT 3
- How to obtain consistent image and depthmap size HOT 2
- Cannot construct eval paths HOT 1
- Question about preprocess.cpp HOT 2
- IndexError while running exp.py HOT 4
- Change the camera parameters, but get the same output HOT 6
- Why is image coordinate multiplied by 2 when generating sampling_maps HOT 2
- How to get composite view HOT 6
- Questions about the paper HOT 1
- How to get the synthesize images from input images? HOT 3
- method to generate camera path
- Proxy-geometry generation pipeline HOT 2
- Percetual Loss HOT 3
- Image Undistortion and Proxy-geometry Reconstruction HOT 1
- co package version HOT 1
- Confused about why counts numpy array is not symmetric
- Could you provide New Recording 1.00 datasets?
- Reconstructed mesh from COLMAP HOT 2
- DTU groundtruth meshes
- Creating a own dataset
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeviewsynthesis.