Coder Social home page Coder Social logo

replica-dataset's Introduction

Replica Dataset

The Replica Dataset is a dataset of high quality reconstructions of a variety of indoor spaces. Each reconstruction has clean dense geometry, high resolution and high dynamic range textures, glass and mirror surface information, planar segmentation as well as semantic class and instance segmentation. See the technical report for more details.

Replica Modalities

The Replica SDK contained in this repository allows visual inspection of the datasets via the ReplicaViewer and gives an example of how to render out images from the scenes headlessly via the ReplicaRenderer.

For machine learning purposes each dataset also contains an export to the format employed by AI Habitat and is therefore usable seamlessly in that framework for AI agent training and other ML tasks.

Citing the Replica Dataset

If you use the Replica dataset in your research directly or indirectly via derivative datasets or frameworks, please cite the following technical report:

@article{replica19arxiv,
  title =   {The {R}eplica Dataset: A Digital Replica of Indoor Spaces},
  author =  {Julian Straub and Thomas Whelan and Lingni Ma and Yufan Chen and Erik Wijmans and Simon Green and Jakob J. Engel and Raul Mur-Artal and Carl Ren and Shobhit Verma and Anton Clarkson and Mingfei Yan and Brian Budge and Yajie Yan and Xiaqing Pan and June Yon and Yuyang Zou and Kimberly Leon and Nigel Carter and Jesus Briales and  Tyler Gillingham and  Elias Mueggler and Luis Pesqueira and Manolis Savva and Dhruv Batra and Hauke M. Strasdat and Renzo De Nardi and Michael Goesele and Steven Lovegrove and Richard Newcombe },
  journal = {arXiv preprint arXiv:1906.05797},
  year =    {2019}
}

Replica Dataset

The following 18 scenes are included in this initial release:

Replica Dataset

Replica Dataset

Each Replica contains the following assets:

├── glass.sur
├── habitat
    ├── mesh_semantic.ply 
    ├── mesh_semantic.navmesh
    ├── info_semantic.json
    ├── mesh_preseg_semantic.ply 
    ├── mesh_preseg_semantic.navmesh
    ├── info_preseg_semantic.json
    ├── replica_stage.stage_config.json
    └── sorted_faces.bin 
├── mesh.ply
├── preseg.bin
├── preseg.json
├── semantic.bin
├── semantic.json
└── textures
    ├── 0-color-ptex.hdr
    ├── 0-color-ptex.w
    ├── 1-color-ptex.hdr
    ├── 1-color-ptex.w
    ├── ...
    └── parameters.json

The different files contain the following:

  • glass.sur: parameterization of glass and mirror surfaces.
  • mesh.ply: the quad mesh of the scene with vertex colors.
  • preseg.json and preseg.bin: the presegmentation in terms of planes and non-planes of the scene.
  • semantic.json and semantic.bin: the semantic segmentation of the scene.
  • textures: the high resolution and high dynamic range textures of the scene.
  • habitat/mesh*semantic.ply: the quad meshes including semantic or presegmentation information for AI Habitat.
  • habitat/info*semantic.json: mapping from instance IDs in the respective mesh_*.ply to semantic names.
  • habitat/mesh*semantic.navmesh: navigation grid for AI Habitat.
  • habitat/replica_stage.stage_config.json: configuration file defining scene level parameters for habitat-sim.
  • habitat/sorted_faces.bin: binary file containing pre-processed geometry data for habitat-sim Ptex rendering support.

Download on Mac OS and Linux

Make sure pigz, wget, and unzip are installed:

# on Mac OS
brew install wget pigz unzip
# on Ubuntu
sudo apt-get install wget pigz unzip

To download and decompress the dataset use the download.sh script:

./download.sh /path/to/replica_v1

Download on Windows

Execute win_download.bat to download Replica.

Replica SDK

Setup

After installing the dependencies of Pangolin, the Replica SDK can be compiled using the build script via

git submodule update --init
./build.sh

It requires the dependencies of Pangolin and Eigen to be installed. If you wish to use the headless renderer ensure you have the libegl1-mesa-dev package.

ReplicaViewer

ReplicaViewer is an interactive UI to explore the Replica Dataset.

./build/bin/ReplicaViewer mesh.ply /path/to/atlases [mirrorFile]

ReplicaViewer

The exposure value for rendering from the HDR textures can be adjusted on the top left.

ReplicaRenderer

The ReplicaRenderer shows how to render out images from a Replica for a programmatically defined trajectory without UI. This executable can be run headless on a server if so desired.

./build/bin/ReplicaRenderer mesh.ply textures glass.sur

Replica and AI Habitat

To use Replica within AI Habitat checkout the AI Habitat Sim at https://github.com/facebookresearch/habitat-sim. After building the project you can launch the test viewer to verify that everything works:

./build/viewer --dataset /PATH/TO/REPLICA/replica.scene_dataset_config.json -- frl_apartment_0

Team

Julian Straub, Thomas Whelan, Lingni Ma, Yufan Chen, Erik Wijmans, Simon Green, Jakob J. Engel, Raul Mur-Artal, Carl Ren, Shobhit Verma, Anton Clarkson, Mingfei Yan, Brian Budge, Yajie Yan, Xiaqing Pan, June Yon, Yuyang Zou, Kimberly Leon, Nigel Carter, Jesus Briales, Tyler Gillingham Elias Mueggler, Luis Pesqueira, Manolis Savva, Dhruv Batra, Hauke M. Strasdat, Renzo De Nardi, Michael Goesele, Steven Lovegrove, and Richard Newcombe.

Contact

[email protected]

Acknowledgements

The Replica dataset would not have been possible without the hard work and contributions of Matthew Banks, Christopher Dotson, Rashad Barber, Justin Blosch, Ethan Henderson, Kelley Greene, Michael Thot, Matthew Winterscheid, Robert Johnston, Abhijit Kulkarni, Robert Meeker, Jamie Palacios, Tony Phan, Tim Petrvalsky, Sayed Farhad Sadat, Manuel Santana, Suruj Singh, Swati Agrawal, and Hannah Woolums.

License

See the LICENSE file for details.

replica-dataset's People

Contributors

aclegg3 avatar atroyn avatar christian-rauch avatar jstraub avatar mosra avatar mp3guy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

replica-dataset's Issues

Object coordinate system in info_semantic.json file

Do the object coordinate system have any correspondence with the habitat agent position? What is the transformation between the coordinate system from the file and the habitat simulator?

We have tried #29 but the coordinates of the object in the habitat sim do not match the "oriented_bbox": "abb": "center" at all.

Thanks!

starting location

Sorry for the basic question, but I am having trouble setting the start location for my episodes. I have created my own dataset "train file" and I am using habitat. My scenes always start out a distance from the room, which I see as floating in a black void. How can I get standard starting positions and set them?

navigable positions in ReplicaSDK's coordinate frame

Hello, I'm trying to get navigable positions for replica dataset with habitat-sim. It seems habitat-sim's coordinate system is quite different from the one used in ReplicaSDK (the gravity direction is in +y as opposed to -z?). I am wondering if there is a known transformation between these two coordinate systems? Much thanks in advance.

Segmentation fault for ReplicaRender, any advanced tutorial?

  1. Found ReplicaViewer under ./build/ReplicaSDK, not ./build/bin

  2. Successfully got into it by running: ./build/ReplicaSDK/ReplicaViewer ./apartment_0/mesh.ply ./apartment_0/textures

  3. Got segmentation fault by running : ./build/ReplicaSDK/ReplicaRenderer ./apartment_0/mesh.ply ./apartment_0/textures ./apartment_0/glass.sur

This is definitely a very useful dataset for real world robot, so I'm curious is there a more advanced tutorial? For my case, I want to get consecutive images, depth label and camera pose, but I have no idea where should I start.

Problem with habitat/navmesh?

When apartment0 is viewed with habitat-sim/build/viewer, the agent cannot cross a particular point on the stairs.

See attached videos --
apartment0_floor1: where the agent is spawned on floor1 and gets stuck trying to go up the stairs, and
apartment0_floor2: where the agent is spawned on floor2 and gets stuck trying to go down.

Printout on the screen says "distance to closest obstacle = 0". I suspect the navmesh is off?

apartment0_floor1
apartment0_floor2

Error in ptex rendering using habitat-sim

Hi, I tried rendering high-quality RGB images using habitat-sim. I used sorted faces and pointed to the mesh.ply file in the scene. Looks like textures are loading correctly, but there's an error in loading mesh.ply : ResourceManager::loadStage : Stage mesh.ply Collision mesh load failed. Aborting scene initialization. Thank you so much for your help.

Here's also the full error.

I1016 19:13:42.846678 11286 PTexMeshData.cpp:471] Splitting mesh... 
I1016 19:13:43.435354 11286 PTexMeshData.cpp:381] The number of quads: 1908569, which equals to 3817138 triangles.
I1016 19:13:43.435405 11286 PTexMeshData.cpp:812] Loading mesh 1/12... 
I1016 19:13:43.441056 11286 PTexMeshData.cpp:812] Loading mesh 2/12... 
I1016 19:13:43.444914 11286 PTexMeshData.cpp:812] Loading mesh 3/12... 
I1016 19:13:43.449556 11286 PTexMeshData.cpp:812] Loading mesh 4/12... 
I1016 19:13:43.454962 11286 PTexMeshData.cpp:812] Loading mesh 5/12... 
I1016 19:13:43.456931 11286 PTexMeshData.cpp:812] Loading mesh 6/12... 
I1016 19:13:43.457381 11286 PTexMeshData.cpp:812] Loading mesh 7/12... 
I1016 19:13:43.462954 11286 PTexMeshData.cpp:812] Loading mesh 8/12... 
I1016 19:13:43.465827 11286 PTexMeshData.cpp:812] Loading mesh 9/12... 
I1016 19:13:43.468580 11286 PTexMeshData.cpp:812] Loading mesh 10/12... 
I1016 19:13:43.471900 11286 PTexMeshData.cpp:812] Loading mesh 11/12... 
I1016 19:13:43.476325 11286 PTexMeshData.cpp:812] Loading mesh 12/12... 
I1016 19:13:43.479084 11286 PTexMeshData.cpp:838] Calculating mesh adjacency... 
I1016 19:13:44.575686 11286 PTexMeshData.cpp:885] loading atlas textures: 
I1016 19:13:44.576220 11286 PTexMeshData.cpp:894] Loading atlas 1/12 from textures/0-color-ptex.hdr. 
I1016 19:13:44.966266 11286 PTexMeshData.cpp:894] Loading atlas 2/12 from textures/1-color-ptex.hdr. 
I1016 19:13:45.298418 11286 PTexMeshData.cpp:894] Loading atlas 3/12 from textures/2-color-ptex.hdr. 
I1016 19:13:45.627838 11286 PTexMeshData.cpp:894] Loading atlas 4/12 from textures/3-color-ptex.hdr. 
I1016 19:13:46.026206 11286 PTexMeshData.cpp:894] Loading atlas 5/12 from textures/4-color-ptex.hdr. 
I1016 19:13:46.171928 11286 PTexMeshData.cpp:894] Loading atlas 6/12 from textures/5-color-ptex.hdr. 
I1016 19:13:46.220913 11286 PTexMeshData.cpp:894] Loading atlas 7/12 from textures/6-color-ptex.hdr. 
I1016 19:13:46.682073 11286 PTexMeshData.cpp:894] Loading atlas 8/12 from textures/7-color-ptex.hdr. 
I1016 19:13:46.898110 11286 PTexMeshData.cpp:894] Loading atlas 9/12 from textures/8-color-ptex.hdr. 
I1016 19:13:47.123327 11286 PTexMeshData.cpp:894] Loading atlas 10/12 from textures/9-color-ptex.hdr. 
I1016 19:13:47.383754 11286 PTexMeshData.cpp:894] Loading atlas 11/12 from textures/10-color-ptex.hdr. 
I1016 19:13:47.633412 11286 PTexMeshData.cpp:894] Loading atlas 12/12 from textures/11-color-ptex.hdr. 
E1016 19:13:47.841044 11286 ResourceManager.cpp:331] ResourceManager::loadStage : Stage mesh.ply Collision mesh load failed. Aborting scene initialization.
E1016 19:13:47.841078 11286 Simulator.cpp:199] Cannot load mesh.ply
I1016 19:13:47.841223 11286 PhysicsManager.cpp:33] Deconstructing PhysicsManager
I1016 19:13:47.841229 11286 SceneManager.h:25] Deconstructing SceneManager
I1016 19:13:47.841235 11286 SceneGraph.h:26] Deconstructing SceneGraph
I1016 19:13:48.071816 11286 Renderer.cpp:34] Deconstructing Renderer
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/miniconda3/lib/python3.8/site-packages/habitat_sim/utils/data/data_extractor.py", line 93, in __init__
    sim = habitat_sim.Simulator(self.cfg)
  File "<attrs generated init habitat_sim.simulator.Simulator>", line 9, in __init__
  File "/root/miniconda3/lib/python3.8/site-packages/habitat_sim/simulator.py", line 100, in __attrs_post_init__
    self.__set_from_config(self.config)
  File "/root/miniconda3/lib/python3.8/site-packages/habitat_sim/simulator.py", line 212, in __set_from_config
    self._config_backend(config)
  File "/root/miniconda3/lib/python3.8/site-packages/habitat_sim/simulator.py", line 149, in _config_backend
    super().__init__(config.sim_cfg)
ValueError: Cannot load: mesh.ply

Render Semantic Segmentation

I generated successfully the images and the depth images using the below command:

./build/ReplicaSDK/ReplicaRenderer apartment_0/mesh.ply apartment_0/textures/ apartment_0/glass.sur

But I am struggling generating the semantic segmentation images, can you tell me please what command shall I use?

Category ID -> Category Name Mapping

I searched the repo and relevant documents trying to find the mapping from Category ID to Category Name but didn't find it, probably I missed it. It would be appreciated if someone can direct me to the wiki.

======

Updates:
Check README.md in https://github.com/facebookresearch/Replica-Dataset
habitat/info*semantic.json: mapping from instance IDs in the respective mesh_*.ply to semantic names.

Segmentation fault for ReplicaViewer

I am getting a segfault when I try to run the ReplicaViewer. Here is the backtrace from gdb:

GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from ReplicaViewer...(no debugging symbols found)...done.
(gdb) run Data/apartment_0/mesh.ply Data/apartment_0/textures/ Data/apartment_0/glass.sur
Starting program: /cvgl2/u/kasimbeg/Programs/Replica-Dataset/build/ReplicaSDK/ReplicaViewer Data/apartment_0/mesh.ply Data/apartment_0/textures/ Data/apartment_0/glass.sur
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffea29a700 (LWP 10951)]
[New Thread 0x7fffe9a99700 (LWP 10952)]
[New Thread 0x7fffe9298700 (LWP 10953)]
[New Thread 0x7fffe8a97700 (LWP 10954)]
[New Thread 0x7fffe8296700 (LWP 10955)]
[New Thread 0x7fffe7a95700 (LWP 10956)]
[New Thread 0x7fffe7294700 (LWP 10957)]
[New Thread 0x7fffe6a93700 (LWP 10958)]
Framebuffer with requested attributes not available. Using available framebuffer. You may see visual artifacts.Loaded 15 mirrors

Thread 1 "ReplicaViewer" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) backtrace
#0  0x0000000000000000 in ?? ()
#1  0x0000000000416dbd in MirrorRenderer::MirrorRenderer(std::vector<MirrorSurface, std::allocator<MirrorSurface> > const&, int, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >) ()
#2  0x000000000040d964 in main ()

Build issue on Ubuntu

Hi, I'm building on Ubuntu 16.04. After building the latest Pangolin from source, I ran build.sh and encountered the following error:

Scanning dependencies of target ptex
make[2]: *** No rule to make target '../3rdparty/Pangolin/build/src/libpangolin.so', needed by 'ReplicaSDK/libptex.so'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 30%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o
[ 30%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o
[ 30%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o
In file included from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/3rdparty/Pangolin/include/pangolin/display/opengl_render_state.h:30:0,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/ReplicaSDK/./include/PTexLib.h:3,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/ReplicaSDK/ptex/PTexLib.cpp:2:
/home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/3rdparty/Pangolin/include/pangolin/platform.h:30:29: fatal error: pangolin/config.h: No such file or directory
In file included from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/3rdparty/Pangolin/include/pangolin/image/image.h:30:0,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/3rdparty/Pangolin/include/pangolin/image/managed_image.h:30,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/ReplicaSDK/./include/MeshData.h:4,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/ReplicaSDK/./include/PLYParser.h:4,
                 from /home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/ReplicaSDK/ptex/PLYParser.cpp:2:
/home/jerryhe/Desktop/Project/Semantic3D/Replica-Dataset/3rdparty/Pangolin/include/pangolin/platform.h:30:29: fatal error: pangolin/config.h: No such file or directory
compilation terminated.
compilation terminated.
ReplicaSDK/CMakeFiles/ptex.dir/build.make:62: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o' failed
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o] Error 1
ReplicaSDK/CMakeFiles/ptex.dir/build.make:86: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o' failed
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o] Error 1
CMakeFiles/Makefile2:89: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/all' failed
make[1]: *** [ReplicaSDK/CMakeFiles/ptex.dir/all] Error 2
Makefile:83: recipe for target '

Thanks for your help!

fatal error: EGL/egl.h: No such file or directory

Scanning dependencies of target ptex
[ 10%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o
/share/xiongyanmin/data/replica/Replica-Dataset/ReplicaSDK/ptex/EGL.cpp:5:21: fatal error: EGL/egl.h: No such file or directory
compilation terminated.
ReplicaSDK/CMakeFiles/ptex.dir/build.make:110: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o' failed
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o] Error 1
CMakeFiles/Makefile2:89: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/all' failed
make[1]: *** [ReplicaSDK/CMakeFiles/ptex.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

high quality rendering together with semantic labels

What would be the best way to render semantic label maps along with the highest quality Replica Dataset images, at arbitrary poses?

I'm wasn't able to reproduce the photorealistic style of the images from the paper with the Habitat Renderer (which supports semantic label map queries). Thanks very much!

My Rendering
step_0_0_rgb
step_0_0_semantic

Rendering from the Paper/Repo:
ReplicaViewer

ouput 32 bit EXR images

Could you give me some hint on how to render and write to 32 bit exr images instead of 8 bit jpgs?

I saw that pangolin supports writing exr images so I tried by making following changes:

pangolin::GlTexture render(width, height, GL_RGB32F, true, 0, GL_RGB, GL_FLOAT, 0);
pangolin::TypedImage image(width, height, pangolin::PixelFormatFromString("RGB96F"));
render.Download(image);
pangolin::SaveImage(image, std::string(filename));

However, this gives me a somehow 'cropped' image i.e. the content seems to be fine wrt. to the y-axis but horizontally I get only a third of the content stretched to the full width with alternating rgb patterns:
exr

I am able to write 16 bit pngs with a similar approach:

pangolin::GlTexture render(width, height, GL_RGB16, true, 0, GL_RGB, GL_UNSIGNED_SHORT, 0);
pangolin::TypedImage image(width, height, pangolin::PixelFormatFromString("RGB48"));

png16

PLY with semantic labels

Hi,

i want to create PLYs depicting the scenes with semantic label and corresponding color for each point.
I guess I have to match mesh.ply and semantic.json. However, I can't see how...
Any script or hints are welcome :)

Thanks!

Unproject Depth

I rendered a scene using the provided ReplicaRenderer to get depth maps and color images. In addition, I saved the extrinsic and intrinsic camera parameters. Then I tried to unproject the depth maps again, but they do not align (see attached images).

For the intrinsic parameters I assume a pinhole camera and used the same parameters as for pangolin::ProjectionMatrixRDF_BottomLeft: focal length = [width / 2.0f, width / 2.0f], principal point = [(width - 1.0f) / 2.0f, (height - 1.0f) / 2.0f]. And rotation and translation are obtained from T = s_cam.GetModelViewMatrix() with R = T[:3,:3], t = T[:3, 3]. The depth is re-scaled by dividing the depth values as read from the .png files by d = d_png / (65535.0 * 0.1). The 3D point is then given by xyz = R^T . (K^(-1) . d . (u, v, 1)^T - t).

If you look at the blue cushion, or the wall to the right, you can notice the offsets. I assume that there is a problem how I use the intrinsics, or scale the depth?

ScreenCapture_2019-12-12-17-02-25
ScreenCapture_2019-12-12-17-03-24

Install fail, after run ./build.sh

make[2]: *** Waiting for unfinished jobs....
[ 20%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o
[ 20%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o
[ 30%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o
/home/yiming/workspacefordeeplearning/Facebook/Replica-Dataset/ReplicaSDK/ptex/EGL.cpp: In constructor ‘EGLCtx::EGLCtx(bool, int, bool)’:
/home/yiming/workspacefordeeplearning/Facebook/Replica-Dataset/ReplicaSDK/ptex/EGL.cpp:155:16: error: ‘GLEW_ERROR_NO_GLX_DISPLAY’ was not declared in this scope
if (err == GLEW_ERROR_NO_GLX_DISPLAY) {
^
ReplicaSDK/CMakeFiles/ptex.dir/build.make:110: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o' failed
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o] Error 1
CMakeFiles/Makefile2:89: recipe for target 'ReplicaSDK/CMakeFiles/ptex.dir/all' failed
make[1]: *** [ReplicaSDK/CMakeFiles/ptex.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

Segmentation Fault (core dumped) - ReplicaViewer and ReplicaRenderer

Hi guys,

I tried to install the ReplicaSDK and could compile it successfully 😃
However, when I tried to run ReplicaViewer I faced a segmentation fault.

./build/ReplicaSDK/ReplicaViewer ./apartment_0/mesh.ply ./apartment_0/textures ./apartment_0/glass.sur

Loaded 15 mirrors
Segmentation fault (core dumped)

Any idea? I'm using Ubuntu 16.04, 8GB Ram, kernel: Linux 4.15.0-45-generic
I have attached the gdb trace and also the information about the graphics card installed.

gdb_trace
Graphics_Card

Best,

failed to uncompress, require a md5sum.txt for each download file

Hi, I've run the download script again and again to make sure full download every file.
However, it always fails to uncompress:
(I'm using win10 Pro, how to fix this error?)

tar -xvzf merge.tar.gz
x apartment_0/
x apartment_0/textures/
x apartment_0/textures/27-color-ptex.hdr
x apartment_0/textures/3-color-ptex.hdr
x apartment_0/textures/13-color-ptex.hdr
x apartment_0/textures/8-color-ptex.hdr
x apartment_0/textures/20-color-ptex.hdr
x apartment_0/textures/16-color-ptex.hdr
x apartment_0/textures/1-color-ptex.hdr
x apartment_0/textures/9-color-ptex.hdr
x apartment_0/textures/25-color-ptex.hdr
x apartment_0/textures/24-color-ptex.hdr
x apartment_0/textures/6-color-ptex.hdr: gzip decompression failed
tar: Error exit delayed from previous errors.


Is there a md5sum.txt for each download file? so that user can check the md5sum after download.

I cannot get all 18 scenes

The original release has 18 scenes, but I can only get 8 scenes through "./download.sh /path/to/replica_v1". I don't know why?

Segmentation fault for ReplicaRender and Unable to load scene semantics in habitat-sim

Hi,
Thank you for the incredible data set. I am getting the Segmentation fault when I run ReplicaRenderer but ReplicaViewer is working fine

1. ReplicaViewer is working fine
./build/ReplicaSDK/ReplicaViewer ../Replica/apartment_0/mesh.ply ../Replica/apartment_0/textures/ ../Replica/apartment_0/glass.sur Loaded 15 mirrors Splitting mesh... done Loading mesh 31/31... done Calculating mesh adjacency... done Loading atlas 31/31... done
2. ReplicaRenderer is crashing
./build/ReplicaSDK/ReplicaRenderer ../Replica/apartment_0/mesh.ply ../Replica/apartment_0/textures/ ../Replica/apartment_0/glass.sur Segmentation fault (core dumped)

Backtrace from GDB:

`
gdb ./build/ReplicaSDK/ReplicaRenderer
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Registered pretty printers for UE4 classes
Reading symbols from ./build/ReplicaSDK/ReplicaRenderer...(no debugging symbols found)...done.
(gdb) run ../Replica/apartment_0/mesh.ply ../Replica/apartment_0/textures/ ../Replica/apartment_0/glass.sur
Starting program: ./build/ReplicaSDK/ReplicaRenderer ../Replica/apartment_0/mesh.ply ../Replica/apartment_0/textures/ ../Replica/apartment_0/glass.sur
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Program received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff71c6b2c in EGLCtx::EGLCtx(bool, int, bool) () from ./build/ReplicaSDK/libptex.so
#2 0x0000000000407885 in main ()
(gdb) q
A debugging session is active.

Inferior 1 [process 7628] will be killed.

Quit anyway? (y or n) y
`
Platform Details:
System : Ubuntu 16.04
Graphic Card: Nvidia GTX 1660Ti
Driver : 418.67
CUDA Version: 9.2
kernel : 4.15.0-60-generic

Unable to load scene semantics in habitat-sim
`python ./examples/example.py --scene ../Replica/apartment_0/habitat/mesh_semantic.ply --print_semantic_scene
sim_cfg.physics_config_file = ./data/default.phys_scene_config.json
==== Initialized Sensor Spec: =====
Sensor uuid: color_sensor
Sensor type: SensorType.COLOR
Sensor position: [0. 1.5 0. ]

Renderer: GeForce GTX 1660 Ti/PCIe/SSE2 by NVIDIA Corporation
OpenGL version: 4.6.0 NVIDIA 418.67
Using optional features:
GL_ARB_ES2_compatibility
GL_ARB_direct_state_access
GL_ARB_get_texture_sub_image
GL_ARB_invalidate_subdata
GL_ARB_multi_bind
GL_ARB_robustness
GL_ARB_separate_shader_objects
GL_ARB_texture_filter_anisotropic
GL_ARB_texture_storage
GL_ARB_texture_storage_multisample
GL_ARB_vertex_array_object
GL_KHR_debug
Using driver workarounds:
no-layout-qualifiers-on-old-glsl
nv-zero-context-profile-mask
nv-implementation-color-read-format-dsa-broken
nv-cubemap-inconsistent-compressed-image-size
nv-cubemap-broken-full-compressed-image-query
nv-compressed-block-size-in-bits
I0913 20:31:32.007215 8369 simulator.py:112] Loaded navmesh ../Replica/apartment_0/habitat/mesh_semantic.navmesh
start_state.position [ 2.9070525 -1.3747652 1.7450445] start_state.rotation quaternion(-0.794129490852356, 0, 0.607748568058014, 0)
semantic scene = <habitat_sim._ext.habitat_sim_bindings.SemanticScene object at 0x7f5919da1ef0>
House center:[0. 0. 0.] dims:[-inf -inf -inf]
Press Enter to continue...
`

Can you please help me to solve this issues?

Can I modify the texture and the mesh of a scene?

Hello,
I wonder if it is possible to change the scene, for example, the effects of the scene's light and the positions where desks and chairs are placed. If true, what should I do to save these modified files?

Build Issue on Mac OS

When running build.sh, I encountered the following issue with Mac OS

Scanning dependencies of target ptex
make[2]: *** No rule to make target `../3rdparty/Pangolin/build/src/libpangolin.so', needed by `ReplicaSDK/libptex.dylib'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 10%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o
[ 20%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o
[ 30%] Building CXX object ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o
clang: clang: errorerror: : unsupported option '-fopenmp'
unsupported option '-fopenmp'
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/PLYParser.cpp.o] Error 1
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/EGL.cpp.o] Error 1
clang: error: unsupported option '-fopenmp'
make[2]: *** [ReplicaSDK/CMakeFiles/ptex.dir/ptex/PTexLib.cpp.o] Error 1
make[1]: *** [ReplicaSDK/CMakeFiles/ptex.dir/all] Error 2
make: *** [all] Error 2

My gcc version is 9.1.0. Would appreciate any insight!

Fails to clone Pangolin and Eigen

Hello, I have downloaded Replica dataset but somehow I have this error cloning both Pangolin and Eigen ?
image

Would you mind helping me to fix this ?

Habitat mesh_semantic.ply format

Is there any documentation on the format for the habitat/mesh_semantic.ply files?
I'm hoping to create my own "dataset" with some .ply files, and I'm not sure how the semantic labels are added to the .ply file.

Ubuntu build error

I follow the instruction to install all dependencies and run the build script, but get the error

Replica-Dataset/3rdparty/eigen/Eigen/src/Core/util/Macros.h:842:41: error: ‘assert’ was not declared in this scope
  842 |     #define eigen_plain_assert(x) assert(x)
      |                                   ~~~~~~^~~

The build failed. I am trying to insert #include <cassert> to the file, but it doesn't change anything. Any suggestion to fix it? Thanks.

GLSL 3.2ES support

Hi. Thanks for releasing the dataset. I was wondering if I can use GLSL 3.2ES for the shaders. Thanks.

Build failed: undefined reference to `png_set_longjmp_fn'

Hello,
I am running into an error when I run the build.sh script.

...
 60%] Linking CXX executable ReplicaViewer
../../3rdparty//Pangolin/build/src/libpangolin.so: undefined reference to `png_set_longjmp_fn'
collect2: error: ld returned 1 exit status
ReplicaSDK/CMakeFiles/ReplicaRenderer.dir/build.make:125: recipe for target 'ReplicaSDK/ReplicaRenderer' failed
make[2]: *** [ReplicaSDK/ReplicaRenderer] Error 1
CMakeFiles/Makefile2:126: recipe for target 'ReplicaSDK/CMakeFiles/ReplicaRenderer.dir/all' failed
make[1]: *** [ReplicaSDK/CMakeFiles/ReplicaRenderer.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
../../3rdparty//Pangolin/build/src/libpangolin.so: undefined reference to `png_set_longjmp_fn'
collect2: error: ld returned 1 exit status
ReplicaSDK/CMakeFiles/ReplicaViewer.dir/build.make:125: recipe for target 'ReplicaSDK/ReplicaViewer' failed
make[2]: *** [ReplicaSDK/ReplicaViewer] Error 1
CMakeFiles/Makefile2:163: recipe for target 'ReplicaSDK/CMakeFiles/ReplicaViewer.dir/all' failed
make[1]: *** [ReplicaSDK/CMakeFiles/ReplicaViewer.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2

I am on an Ubuntu 16.04. I have tried removing and (re)installing both libpng12-dev and libpng16-dev but I keep getting the error above. Do you have any ideas on how to fix this?

raising "Found no GPUs" error with ReplicaRenderer

Hi,

After successfully compiling the renderer, I'm stuck with the "Found no GPUs" Error raised at EGL.cpp:101. I've installed libegl1-mesa-dev and is using Quadro GP100 with driver version 410.79 and CUDA 10.0.

Any idea what might went wrong?

Exporting ptex maps

I'm trying to modify the scene geometry in 3D software, but I'm unable to load those ptex files saved in hdr format. Is there any information on the source software that was used to get those textures, or some way to convert the existing textures?

Cannot Download

Hi,
I tried to download the dataset with download.sh on MacOS. Below is the error I got,
Replica to replica_v1
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
./download.sh: line 12: wget: command not found
cat: replica_v1_0.tar.gz.part??: No such file or directory
unpigz: skipping: empty

Could someone help me figure out what is wrong and how to fix it? Thank you.

Segmentation fault

when I run './build/ReplicaSDK/ReplicaRenderer ../replica_v1/apartment_0/mesh.ply ../replica_v1/apartment_0/textures ../replica_v1/apartment_0/glass.sur', it gives 'Segmentation fault'. Would anyone give me some suggestion? Thanks.

info_semantic.json bad information

I'm having trouble with info_semantic data for frl_apartment_3. If you take a look at the abb center position of the indoor-plants only 2 of 3 make sense. This is also a problem for many other objects in that room.

albedo maps and light source information

Hi,

I have two questions regarding the dataset that I would like to clarify:

  1. Is it possible to extract the ground truth albedo map of the scenes?
  2. Is the information of the light sources within the scenes provided somehow?

Thanks.

Coordinate space clarification

Hello
Just want to see if the mesh are defined in OpenGL space. Also the camera used in the renderer and viewer. Thank you.

Different world coordinate systems? Starting point in hotel_0 and office_0 is based on bed, not floor.

I set the initial state of the robot as the same for all the scenes as follow:

Set agent state

agent = sim.initialize_agent(sim_settings["default_agent"])
agent_state = habitat_sim.AgentState()
agent_state.position = np.array([0.0, 0.072447, 0.0])
agent_state.rotation = np.quaternion(1, 0.0, 0.0, 0)
agent.set_state(agent_state)

For apartment, it looks good :
problem_2

However, for the hotel:

problem_1

I hope the robot can capture images from the same view, so how to handle this situation?

DRM Device File prompt

When I run the ReplicaRenderer, I'm being prompted to enter DRM device file information. Any idea what's going on @jstraub ? Thanks!

Screen Shot 2019-11-05 at 3 52 51 PM

On ec2 with 4 GRID K520's and Ubuntu:
Distributor ID: Ubuntu
Description: Ubuntu 16.04.6 LTS
Release: 16.04
Codename: xenial

incorrect texture mapping on Windows

I compiled Pangolin and ReplicaViewer on Windows. Dependencies were resolved by vcpkg, except that mmap was replaced by cpp-mmf. Then I tested it on the downloaded dataset. Mesh and depth map look good, but texture mapping seems completely wrong. Screenshot below was taken when testing on apartment_1. Graphics card: NVidia GTX 1070 (desktop) and NVidia GTX 1060 (laptop). Both installed with latest driver.
Any idea what went wrong? Thanks.

incorrect_texture

ReplicaRenderer falls with assert failed: numDevices, "Found no GPUs"

Hi,
I have working ReplicaViewer, but ReplicaRenderer falls with Assert failed: numDevices, ReplicaSDK/ptex/EGL.cpp:101 "Found no GPUs"
I have ubuntu 16.04, nvidia driver 410.78 and CUDA Version: 10.0.

I have observed the same problem as in closed #18. Any suggestions, what I maybe do wrong?

./download.sh: unpigz: command not found

I am downloading Replica Dataset in my virtual environment and this error is thrown in my terminal after ‘replica_v1_0.tar.gz.partaq’ is saved. I am using Ubuntu 18.04 and I intend to use these scenes with Habitat-SIM. The error message from my terminal is below:

2019-06-18 18:40:31 (2.48 MB/s) - ‘replica_v1_0.tar.gz.partaq’ saved [1859047808/1859047808]

./download.sh: line 15: unpigz: command not found
tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors

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.