GithubHelp home page GithubHelp logo

jop-lee / read Goto Github PK

View Code? Open in Web Editor NEW
439.0 21.0 54.0 82.56 MB

AAAI2023,implementation of "READ: Large-Scale Neural Scene Rendering for Autonomous Driving", the experimental results are significantly better than Nerf-based methods

Home Page: https://github.com/JOP-Lee/READ-Large-Scale-Neural-Scene-Rendering-for-Autonomous-Driving

License: GNU General Public License v2.0

C 18.02% C++ 0.66% Cuda 2.35% Python 78.08% Shell 0.24% Dockerfile 0.66%
driving kitti nerf neural-rendering view-synthesis

read's Introduction

READ: Large-Scale Neural Scene Rendering for Autonomous Driving

Commercial use is forbidden

Paper: https://arxiv.org/abs/2205.05509 (Old version)

Video: Bilibili Bilibili2 Youtube

Demo: (Use only one camera view for training)

All you need is a series of images or videos as input to get the following effect. Scenes are not only limited to driving scenes, but also can be used for tourism scenes, indoor scenes, objects, etc.

Overview:

This is the code release for our AAAI2023 paper, PyTorch implementation of Large-Scale Neural Scene Rendering for Autonomous Driving(READ), a large-scale neural rendering method is proposed to synthesize the autonomous driving scene~(READ), which makes it possible to synthesize large-scale driving scenarios on a PC. Our model can not only synthesize realistic driving scenes but also stitch and edit driving scenes. contents

Setup

The following instructions describe installation of conda environment. Please refer to requirement.

If you want to set it to headless mode(without X server enabled), see the MyRender in the src folder.

Note: This project needs to use the screen to run the script, if not, run the project in src folder.

Run this command to install python environment:

cd src/MyRender
pip install -v -e .  

Run

You can render one of the fitted scenes we provide right away in the real-time viewer or fit your own scene.

Download fitted scenes and universal rendering network weights from here and unpack in the Data directory.

We suppose that you have at least one GeForce GTX 1080 Ti for fitting and inference.

Use fitted scene

Here we show an example how to run fitted scenes in the viewer.

kitti6

python viewer.py --config downloads/kitti6.yaml

Viewer navigation:

  • Move forward: w
  • Move backward: s
  • Move left: a
  • Move right: d
  • Rise: q
  • Fall: e
  • Turn to the left: 1
  • Turn to the right: 2
  • Turn to the up: 3
  • Turn to the down: 4
  • Rotation: press left mouse button and drag
  • Move: press rigth mouse button and drug / scroll middle mouse botton
  • Pan: press middle mouse button and drug

Train

python train.py --config configs/train_example.yaml --pipeline READ.pipelines.ogl.TexturePipeline --crop_size 256x256

The size of crop_size depends on your GPU memory, and the parameter train_dataset_args can be adjusted in the configs folder.

Train with your own data

It's very simple. You just need a sequence of pictures to do it.

  1. Use metashape to obtain camera.xml, pointcloud.ply
  2. Place the above files and photos in the Data folder, for example, Data/image/xx.png, Data/camera.xml Data/pointcloud.ply
  3. Change the folder address in configs/paths_example.yaml and load net_ckpt/texture_ckpt model address in configs/train_example.yaml, if any.
  4. Run the code: python train.py --config configs/train_example.yaml --pipeline READ.pipelines.ogl.TexturePipeline --crop_size 256x256

Scene Editing:

READ can move and remove the cars in different views. A panorama with larger view can be synthesized by changing the camera parameters. contents

Scene Stitching:

READ is able to synthesize the larger driving scenes and update local areas with obvious changes in road conditions. contents

Novel View Synthesis:

contents

Acknowledgments

In this code we refer to the following implementations: npbg and MIMO. Great thanks to them!

Citation

If our work or code helps you, please consider to cite our paper. Thank you!

@inproceedings{li2022read,
  author = {Li, Zhuopeng and Li, Lu and Zhu, Jianke*},
  title = {READ: Large-Scale Neural Scene Rendering for Autonomous Driving},
  booktitle = {AAAI},
  year = {2023}
}

read's People

Contributors

jop-lee 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

read's Issues

Error when I run the train.py

Hi, when I run the train.py I got the error:
`/public/home/luanzl/anaconda3/envs/READ/bin/python3.9 /public/home/luanzl/.pycharm_helpers/pydev/pydevd.py --multiprocess --qt-support=auto --client localhost --port 39309 --file /public/home/luanzl/WorkSpace/READ/train.py
Connected to pydev debugger (build 223.8836.43)
experiment dir: data/logs/03-21_19-10-01___

  • ARGV:
    /public/home/luanzl/WorkSpace/READ/train.py
    Unchanged args
    batch_size : 3
    batch_size_val : 3
    comment :
    config : /public/home/luanzl/WorkSpace/READ/configs/train_example.yaml
    conv_block : gated
    criterion_args : {'partialconv': False}
    criterion_module : READ.criterions.vgg_loss.VGGLoss
    crop_size : (256, 256)
    dataloader_workers : 8
    dataset_names : []
    descriptor_size : 8
    epochs : 100
    eval : False
    eval_in_test : True
    eval_in_train : True
    eval_in_train_epoch : -1
    exclude_datasets : None
    freeze_net : False
    ignore_changed_args : ['ignore_changed_args', 'save_dir', 'dataloader_workers', 'epochs', 'max_ds', 'batch_size_val', 'config', 'pipeline']
    inference : False
    input_channels : None
    input_format : uv_1d_p1, uv_1d_p1_ds1, uv_1d_p1_ds2, uv_1d_p1_ds3, uv_1d_p1_ds4
    log_freq : 5
    log_freq_images : 100
    lr : 0.0001
    max_ds : 3
    merge_loss : True
    multigpu : True
    n_points : 0
    net_ckpt : None
    net_size : 4
    num_mipmap : 5
    paths_file : configs/paths_example.yaml
    pipeline : READ.pipelines.ogl.TexturePipeline
    reg_weight : 0.0
    save_dir : data/logs
    save_freq : 5
    seed : 2019
    simple_name : True
    splitter_args : {'val_step': 10, 'train_drop': 0.0}
    splitter_module : READ.datasets.splitter.split_by_step
    supersampling : 1
    texture_activation : none
    texture_ckpt : None
    texture_lr : 0.1
    texture_size : None
    train_dataset_args : {'keep_fov': False, 'random_zoom': [0.7, 2.0], 'random_shift': [-1.0, 1.0], 'drop_points': 0.0, 'num_samples': 3000}
    use_mask : None
    use_mesh : False
    val_dataset_args : {'keep_fov': False, 'drop_points': 0.0}
    Changed args
    Using all datasets
    loading pointcloud...
    no normals in /public/home/luanzl/WorkSpace/READ/Data/pointcloud.ply
    === 3D model ===
    VERTICES: 2547322
    EXTENT: [ -84.91281891 -12.33472538 -234.02790833] [ 68.9091568 47.1550293 685.07629395]
    ================
    [1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27, 28, 29, 31, 32, 33, 34, 35, 36, 37, 38, 39, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51, 52, 53, 54, 55, 56, 57, 58, 59, 61, 62, 63, 64, 65, 66, 67, 68, 69, 71, 72, 73, 74, 75, 76, 77, 78, 79, 81, 82, 83, 84, 85, 86, 87, 88, 89, 91, 92, 93, 94, 95, 96, 97, 98, 99, 101, 102, 103, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 123, 124, 125, 126, 127, 128, 129, 131, 132, 133, 134, 135, 136, 137, 138, 139, 141, 142, 143, 144, 145, 146, 147, 148, 149, 151, 152, 153, 154, 155, 156, 157, 158, 159, 161, 162, 163, 164, 165, 166, 167, 168, 169, 171, 172, 173, 174, 175, 176, 177, 178, 179, 181, 182, 183, 184, 185, 186, 187, 188, 189, 191, 192, 193, 194, 195, 196, 197, 198, 199, 201, 202, 203, 204, 205, 206, 207, 208, 209, 211, 212, 213, 214, 215, 216, 217, 218, 219, 221, 222, 223, 224, 225, 226, 227, 228, 229, 231, 232, 233, 234, 235, 236, 237, 238, 239, 241, 242, 243, 244, 245, 246, 247, 248, 249, 251, 252, 253, 254, 255, 256, 257, 258, 259, 261, 262, 263, 264, 265, 266, 267, 268, 269, 271, 272, 273, 274, 275, 276, 277, 278, 279, 281, 282, 283, 284, 285, 286, 287, 288, 289, 291, 292, 293, 294, 295, 296, 297, 298, 299, 301, 302, 303, 304, 305, 306, 307, 308, 309, 311, 312, 313, 314, 315, 316, 317, 318, 319, 321, 322, 323, 324, 325, 326, 327, 328, 329, 331, 332, 333, 334, 335, 336, 337, 338, 339, 341, 342, 343, 344, 345, 346, 347, 348, 349, 351, 352, 353, 354, 355, 356, 357, 358, 359, 361, 362, 363, 364, 365, 366, 367, 368, 369, 371, 372, 373, 374, 375, 376, 377, 378, 379, 381, 382, 383, 384, 385, 386, 387, 388, 389, 391, 392, 393, 394, 395, 396, 397, 398, 399, 401, 402, 403, 404, 405, 406, 407, 408, 409, 411, 412, 413, 414, 415, 416, 417, 418, 419, 421, 422, 423, 424, 425, 426, 427, 428, 429, 431, 432, 433, 434, 435, 436, 437, 438, 439, 441, 442, 443, 444, 445, 446, 447, 448, 449, 451, 452, 453, 454, 455, 456, 457, 458, 459, 461, 462, 463, 464, 465, 466, 467, 468, 469, 471, 472, 473, 474, 475, 476, 477, 478, 479, 481, 482, 483, 484, 485, 486, 487, 488, 489, 491, 492, 493, 494, 495, 496, 497, 498, 499, 501, 502, 503, 504, 505, 506, 507, 508, 509, 511, 512, 513, 514, 515, 516, 517, 518, 519, 521, 522, 523, 524, 525, 526, 527, 528, 529, 531, 532, 533, 534, 535, 536, 537, 538, 539, 541, 542, 543, 544, 545, 546, 547, 548, 549, 551, 552, 553, 554, 555, 556, 557, 558, 559, 561, 562, 563, 564, 565, 566, 567, 568, 569, 571, 572, 573, 574, 575, 576, 577, 578, 579, 581, 582, 583, 584, 585, 586, 587, 588, 589, 591, 592, 593, 594, 595, 596, 597, 598, 599, 601, 602, 603, 604, 605, 606, 607, 608, 609, 611, 612, 613, 614, 615, 616, 617, 618, 619, 621, 622, 623, 624, 625, 626, 627, 628, 629, 631, 632, 633, 634, 635, 636, 637, 638, 639, 641, 642, 643, 644, 645, 646, 647, 648, 649, 651, 652, 653, 654, 655, 656, 657, 658, 659, 661, 662, 663, 664, 665, 666, 667, 668, 669, 671, 672, 673, 674, 675, 676, 677, 678, 679, 681, 682, 683, 684, 685, 686, 687, 688, 689, 691, 692, 693, 694, 695, 696, 697, 698, 699, 701, 702, 703, 704, 705, 706, 707, 708, 709, 711, 712, 713, 714, 715, 716, 717, 718, 719, 721, 722, 723, 724, 725, 726, 727, 728, 729, 731, 732, 733, 734, 735, 736, 737, 738, 739, 741, 742, 743, 744, 745, 746, 747, 748, 749, 751, 752, 753, 754, 755, 756, 757, 758, 759, 761, 762, 763, 764, 765, 766, 767, 768, 769, 771, 772, 773, 774, 775, 776, 777, 778, 779, 781, 782, 783, 784, 785, 786, 787, 788, 789, 791, 792, 793, 794, 795, 796, 797, 798, 799, 801, 802, 803, 804, 805, 806, 807, 808, 809, 811, 812, 813, 814, 815, 816, 817, 818]
    [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 200, 210, 220, 230, 240, 250, 260, 270, 280, 290, 300, 310, 320, 330, 340, 350, 360, 370, 380, 390, 400, 410, 420, 430, 440, 450, 460, 470, 480, 490, 500, 510, 520, 530, 540, 550, 560, 570, 580, 590, 600, 610, 620, 630, 640, 650, 660, 670, 680, 690, 700, 710, 720, 730, 740, 750, 760, 770, 780, 790, 800, 810]
    ds_train: 3000
    ds_val: 82

EPOCH 0

TRAIN
EVAL MODE IN TRAIN
model parameters: 30193988
running on datasets [0]
model3d {'rgb': array([[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.],
...,
[0., 0., 0.],
[0., 0., 0.],
[0., 0., 0.]], dtype=float32), 'normals': None, 'uv2d': array([[0., 0.],
[0., 0.],
[0., 0.],
...,
[0., 0.],
[0., 0.],
[0., 0.]], dtype=float32), 'faces': array([0, 1, 2], dtype=uint32), 'xyz': TrackedArray([[ -21.45231247, 13.24265003, -207.19848633],
[ -21.45231247, 13.24265003, -207.19848633],
[ -21.84580994, 14.13696384, -209.91720581],
...,
[ -30.93203926, 15.21014023, 684.93322754],
[ -30.93203926, 15.21014023, 684.93322754],
[ -30.93203926, 15.21014023, 684.93322754]]), 'xyz_c': TrackedArray([[0.41255814, 0.4299459 , 0.02919084],
[0.41255814, 0.4299459 , 0.02919084],
[0.41 , 0.44497895, 0.02623283],
...,
[0.3509302 , 0.46301866, 0.9998443 ],
[0.3509302 , 0.46301866, 0.9998443 ],
[0.3509302 , 0.46301866, 0.9998443 ]], dtype=float32), 'uv1d': array([ 0, 1, 2, ..., 2547319, 2547320, 2547321])}
proj_matrix was not set
total parameters: 50572564
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[x] No suitable backend found
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[x] No suitable backend found
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
[w] Backend (<module 'glumpy.app.window.backends.backend_glfw' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_glfw.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyglet' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyglet.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_sdl2' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_sdl2.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_osxglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_osxglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_freeglut' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_freeglut.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_qt5' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_qt5.py'>) not available
[w] Backend (<module 'glumpy.app.window.backends.backend_pyside' from '/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/glumpy/app/window/backends/backend_pyside.py'>) not available
[x] No suitable backend found
`

May I know how to resolve this error, hope for your reply, thanks!

Fitted scene - kitti yaml and custom yaml file

Hi,

I have 2 questions

  1. When I tried the viewer.py script with kitti6.yaml, I am getting a blank screen.

Am I missing something?

  1. I trained the network using custom dataset . May I know which yaml file I need to use it in viewer to see the output? Currently, I can see under checkpoints folder two yaml files namely args.yaml and default_args.yaml but not sure which one I need to use or do I need to refer to other file.

Thanks.

"Fatal Python error: Couldn't create autoTSSkey mapping"

Hi,
When I run the "python viewer.py --config downloads/kitti6.yaml", I met the error below.
How can I fixed it?

VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
Fatal Python error: Couldn't create autoTSSkey mapping

Thread 0x00007fbad3a8b700 (most recent call first):
  File "/home/CN/zizhang.wu/anaconda3/envs/Oflow/lib/python3.7/site-packages/glumpy/app/window/backends/backend_glfw.py", line 213 in __init__
  File "/home/CN/zizhang.wu/anaconda3/envs/Oflow/lib/python3.7/site-packages/glumpy/app/__init__.py", line 187 in __new__
  File "viewer_debug.py", line 170 in __init__
  File "viewer_debug.py", line 553 in <module>
Aborted (core dumped)

During scene training, whether to divide into multiple segments, or input all frames together

Hello, in your arxiv version, the lengths of several sequences of KITTI are mentioned, which are 3560 frames, 819 frames, and 1584 frames in Residential, Road, and City scenes.

And in Sec3.5 and Figure 5, "To account for the large scale driving scene, we propose a scene stitching method that is able to concatenate multiple scenes and update a block locally."

I want to confirm, for example, is the scene of 3560 frames divided into small blocks, each block is trained separately, and then spliced, or is the 3560 frame data directly input?

In addition, in the camera.xml you provided, there are <partition> tags, which contains the corresponding <camera_ids>. Is this the basis for dividing the training segments? But I see that this camera.xml file seems to be load only in the viewer stage?

What's the setting of metashape Align photo on the kitti pointcloud data?

I tried to run Align Photos on the kitti dataset to reproduce the result, but found that the pointcloud generated by metashape is much sparser and lower quality than the pointcloud provided in this repo. I guess this may caused by the difference of settings in the metashape software, so could you please provide the detail settings of metashape align photo that produce the point cloud?

Compared with ngp

Compared with ngp, what are the advantages and disadvantages,thanks!

proj_matrix was not set

Hi,

I'm trying to reproduce the results for kitti dataset with the headless mode but I am getting the following error

image

May I know how to resolve it?

Thanks.

File "/READ/gl/render.py", line 31, in _init_buffers raise RuntimeError('PyCUDA init failed, cannot use torch buffer') RuntimeError: PyCUDA init failed, cannot use torch buffer

Hi,
When I follow the install guide, I met the error below.
I run 'python viewer.py --config downloads/kitti6.yaml' in Mobaxtem.

READ_02$ python viewer_debug.py
loading pointcloud...
no normals in /READ/Data/image_kitti6_all_368/pointcloud.ply
=== 3D model ===
VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
[w] Cannot read STENCIL size from the framebuffer
[i] Using GLFW (GL 3.0)
Traceback (most recent call last):
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 29, in _init_buffers
    import pycuda.gl.autoinit  # this may fails in headless mode
  File "/anaconda3/envs/Oflow/lib/python3.7/site-packages/pycuda-2022.2-py3.7-linux-x86_64.egg/pycuda/g                                           l/autoinit.py", line 10, in <module>
    context = make_default_context(lambda dev: cudagl.make_context(dev))
  File "anaconda3/envs/Oflow/lib/python3.7/site-packages/pycuda-2022.2-py3.7-linux-x86_64.egg/pycuda/t                                           ools.py", line 228, in make_default_context
    "on any of the %d detected devices" % ndevices
RuntimeError: make_default_context() wasn't able to create a context on any of the 1 detected devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "viewer_debug.py", line 555, in <module>
    my_app = MyApp(args)
  File "viewer_debug.py", line 187, in __init__
    clear_color=args.clear_color)
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 19, in __init__
    self._init_buffers(viewport_size, out_buffer_location)
  File "/SHFP12/02_bevdet/READ_02/READ/gl/render.py", line 31, in _init_buffers
    raise RuntimeError('PyCUDA init failed, cannot use torch buffer')
RuntimeError: PyCUDA init failed, cannot use torch buffer

b'The GLFW library is not initialized'

你好,
我配置好Windows Xming +Xshell 实现远程 linux gui 界面本地展示,运行python view.py出现下面错误。

loading pointcloud...
no normals in /SHFP12/02_bevdet/READ/Data/image_kitti6_all_368/pointcloud.ply
=== 3D model ===
VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[x] Window creation failed

pycuda error

when I run CUDA_DEVICE=0 python viewer.py --config downloads/kitti6.yaml on a remote server with X-11 forwarding, I met the following problem.
I use sh requirement.sh to install the environment.
I wonder how to solve it. Thanks.

loading pointcloud...
no normals in Data/kitti6/pointcloud.ply
=== 3D model ===
VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
[w] Cannot read STENCIL size from the framebuffer
[i] Using GLFW (GL 3.1)
Traceback (most recent call last):
  File "/home/user/working/NeRF/READ/READ/gl/render.py", line 29, in _init_buffers
    import pycuda.gl.autoinit  # this may fails in headless mode
  File "/root/anaconda3/envs/READ/lib/python3.9/site-packages/pycuda-2022.2-py3.9-linux-x86_64.egg/pycuda/gl/autoinit.py", line 10, in <module>
    context = make_default_context(lambda dev: cudagl.make_context(dev))
  File "/root/anaconda3/envs/READ/lib/python3.9/site-packages/pycuda-2022.2-py3.9-linux-x86_64.egg/pycuda/tools.py", line 215, in make_default_context
    return ctx_maker(dev)
  File "/root/anaconda3/envs/READ/lib/python3.9/site-packages/pycuda-2022.2-py3.9-linux-x86_64.egg/pycuda/gl/autoinit.py", line 10, in <lambda>
    context = make_default_context(lambda dev: cudagl.make_context(dev))
pycuda._driver.LogicError: cuGLCtxCreate failed: OS call failed or operation not supported on this OS

When will the code release?

Hi @JOP-Lee,

As mentioned in the title, do you have any plan to release the code recently?

We are really interested in following up on your work. A precise release date would be much appreciated!

NaN or Inf found in input tensor.

Thanks for your excellent work!!!

But during running the codes in the folder src with the data offered by you(because I don't have a monitor), the evaluate loss are NAN. The printed logs are:

image. If any opearations of mine are wrong or there are some issues in the data or code?

Best wishes

About the meaning of proj_matrix

Hi, I wonder what does proj_matrix do to the points (especially col 3 and col 4) and why do not use intrinsic matrix to project the points directly
proj:
2 * fx / w, 0, 1 - 2 * cx / w, 0
0, 2 * fy / h, 2 * cy / h - 1, 0
0, 0, (zfar + znear) / (znear - zfar), 2 * zfar * znear / (znear - zfar)
0, 0, -1, 0

How to Combine with Nerf?

It seems that the pipeline is neural rendering with classic rasterization procedure and optimization on the memory & GPU. It is great job! I am wondering if it is possible to combine with nerf idea?because it appears to be hard if doing sampling and calculating density or RGB. Is it possible to build Grid-like(sparse voxel ) structure in READ? or get some idea like block-nerf? thank u very much~~

about depth visualization

Great work! I find that your paper has not provided any depth visualization. Could you update some depth visualization figures?

question about camera.xml

Hi, I wonder the format of transform in camera.xml is "camera to world" or "world to camera", and it is in opengl or opencv coordinate system? Thanks very much.

How to generate panorama image?

Hello, thank you for the project.
In the paper and readme, you mentioned that READ can generate panorama image. But It seems the code doesn't have that part, Could you give some instruction to generate panorama image.

Version of Metashape

Hello,
thanks for your great work!

I have questions related to the version of Metashape. If I want to use customized data to train, which version of Metashape should I use? Professional version or Standard version? In addition, what's the difference between these two versions?

Error when I run the code in src/train.py

Hi, when I run the "src/train.py", I got the error:

Traceback (most recent call last):
  File "/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/torch/serialization.py", line 608, in load
    return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
  File "/public/home/luanzl/anaconda3/envs/READ/lib/python3.9/site-packages/torch/serialization.py", line 777, in _legacy_load
    magic_number = pickle_module.load(f, **pickle_load_args)
_pickle.UnpicklingError: unpickling stack underflow

May I know how to resolve it, thanks!

there is no file named "pointcloud.ply"

I get this error when I run "python viewer.py --config downloads/kitti6.yaml"

loading pointcloud...
Traceback (most recent call last):
File "/home/oscar/src/deeplearning/READ/viewer.py", line 551, in
my_app = MyApp(args)
File "/home/oscar/src/deeplearning/READ/viewer.py", line 118, in init
self.scene_data = load_scene_data(args.config)
File "/home/oscar/src/deeplearning/READ/READ/gl/utils.py", line 264, in load_scene_data
pointcloud = import_model3d(fix_relative_path(config['pointcloud'], path))
File "/home/oscar/src/deeplearning/READ/READ/gl/utils.py", line 397, in import_model3d
data = trimesh.load(model_path)
File "/home/oscar/anaconda3/envs/READ/lib/python3.9/site-packages/trimesh/exchange/load.py", line 113, in load
) = parse_file_args(file_obj=file_obj,
File "/home/oscar/anaconda3/envs/READ/lib/python3.9/site-packages/trimesh/exchange/load.py", line 627, in parse_file_args
raise ValueError('string is not a file: {}'.format(file_obj))
ValueError: string is not a file: Data/kitti6_368_total/pointcloud.ply

It seems that there is only "scene.yam" in "Data" directory...

"PyCUDA was compiled without GL extension support"

when I run the "python viewer.py --config downloads/kitti6.yaml",
I meet the problem, "pycuda import error: PyCUDA was compiled without GL extension support", I don't know the reason,
Can you help me, I'm sure that I follow the requirements.sh to install the environment

RuntimeError: make_default_context() wasn't able to create a context on any of the 1 detected devices,RuntimeError: PyCUDA init failed, cannot use torch buffer

Great job!I'm having a bit of an issue with head mode. When I run python train.py --config configs/train_example.yaml --pipeline READ.pipelines.ogl.TexturePipeline --crop_size 256x256, I was able to train successfully and finish evaluating the model. However, when I run python viewer.py --config downloads/kitti6.yaml, I get the following error:

loading pointcloud...
no normals in Data/pointcloud.ply
=== 3D model ===
VERTICES: 2547322
EXTENT: [ -84.91281891 -12.33472538 -234.02790833] [ 68.9091568 47.1550293 685.07629395]

================
new viewport size (1216, 368)
[w] Cannot read STENCIL size from the framebuffer
[i] Using GLFW (GL 3.1)
Traceback (most recent call last):
File "/home/ubuntu/READ/READ/gl/render.py", line 29, in _init_buffers
import pycuda.gl.autoinit # this may fails in headless mode
File "/home/ubuntu/anaconda3/envs/READ/lib/python3.9/site-packages/pycuda-2022.2.2-py3.9-linux-x86_64.egg/pycuda/gl/autoinit.py", line 10, in
context = make_default_context(lambda dev: cudagl.make_context(dev))
File "/home/ubuntu/anaconda3/envs/READ/lib/python3.9/site-packages/pycuda-2022.2.2-py3.9-linux-x86_64.egg/pycuda/tools.py", line 226, in make_default_context
raise RuntimeError(
RuntimeError: make_default_context() wasn't able to create a context on any of the 1 detected devices

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/ubuntu/READ/viewer.py", line 551, in
my_app = MyApp(args)
File "/home/ubuntu/READ/viewer.py", line 182, in init
self.off_render = OffscreenRender(viewport_size=self.viewport_size, out_buffer_location=self.out_buffer_location,
File "/home/ubuntu/READ/READ/gl/render.py", line 19, in init
self._init_buffers(viewport_size, out_buffer_location)
File "/home/ubuntu/READ/READ/gl/render.py", line 31, in _init_buffers
raise RuntimeError('PyCUDA init failed, cannot use torch buffer')
RuntimeError: PyCUDA init failed, cannot use torch buffer

I would appreciate it if you could give me a little advice.Thanks

view.py error

When I run view.py, it appears that "Failed to load GLFW3 shared library." error occurs. I check I have installed gummy, because it is form gummy.ext. I wonder whether it is caused by the fact that I don't have a monitor? And that is no view.py in src fold, what should I do? thank u very much~

glfw_err

about pointcloud input

I want to ask if there was no pointcloud "xyz" information input to network, only it's size?

why I run src/train.py but still get the error about headless?

Hi, when I run src/train.py but still get the error:

[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[w] b'The GLFW library is not initialized'
[x] Window creation failed

May I know how to resolve this issue?

ValueError: string is not a file: pointcloud.ply

When I ran training during the pointcloud.ply load stage, it gave error in this function

raise ValueError('string is not a file: {}'.format(file_obj))

ValueError: string is not a file: pointcloud.ply

I trace to this function

def import_model3d(model_path, uv_order=None, is_mesh=False):
data = trimesh.load(model_path)

in load.py it seems not able to get file_type for pointcloud.ply
....
else:
if '{' in file_obj:
# if a dict bracket is in the string, its probably a straight
# JSON
file_type = 'json'
elif 'https://' in file_obj or 'http://' in file_obj:
# we've been passed a URL, warn to use explicit function
# and don't do network calls via magical pipeline
raise ValueError(
'use load_remote to load URL: {}'.format(file_obj))
elif file_type is None:
raise ValueError('string is not a file: {}'.format(file_obj))

The file path for pointcloud.ply is correct.

There are no points in the sky, how to generate reasonable colors?

Congratulations to the article for being accepted.
I have a small question about how to generate the color of the sky. Because SfM+MVS does not generate points of the sky, there will be no corresponding points (features) projected onto the image after rasterization.
I want to know how the network is reasonably predicted and supervised here?
Thank you~

Procedure for custom dataset training

Hi,

I would like to train from scratch using my own dataset.

Can you pls provide details on what are the inputs required and how to start the training?

Thanks.

The training mode of "READ"

You used two datasets, namely KITTI and Brno Urban datasets. The KITTI dataset contains three scenes: KITTI Residential, KITTI Road and KITTI City. The Brno Urban dataset contains three scenes: Left side view, Left front side view and right side view, I want to ask about your training mode on the two datasets?

  1. Did you train a model in Kitti based on all the data in the three scenarios, or did you train a model on each of the three scenarios and ended up with three models, I'm confused.
  2. In the same case with the Brno Urban dataset, did you train one model or three models?

无法识别ply文件

已经从“https://zenodo.org/record/7395608#.Y7mEmXZBxPZ”下载了点云,图像,weights等,但是运行view.py后,报错如下:
oading pointcloud...
Traceback (most recent call last):
File "/nfs/volume-1028-2/wende/READ/viewer.py", line 551, in
my_app = MyApp(args)
File "/nfs/volume-1028-2/wende/READ/viewer.py", line 118, in init
self.scene_data = load_scene_data(args.config)
File "/nfs/volume-1028-2/wende/READ/READ/gl/utils.py", line 264, in load_scene_data
pointcloud = import_model3d(fix_relative_path(config['pointcloud'], path))
File "/nfs/volume-1028-2/wende/READ/READ/gl/utils.py", line 397, in import_model3d
data = trimesh.load(model_path)
File "/nfs/volume-1028-2/wende/anaconda3/envs/READ/lib/python3.9/site-packages/trimesh/exchange/load.py", line 111, in load
) = parse_file_args(file_obj=file_obj,
File "/nfs/volume-1028-2/wende/anaconda3/envs/READ/lib/python3.9/site-packages/trimesh/exchange/load.py", line 623, in parse_file_args
raise ValueError('string is not a file: {}'.format(file_obj))
ValueError: string is not a file: Data/kitti6_368_total/pointcloud.ply

There was a problem with scene stitching

When I placed the trained car into the scene, rendering issues occurred when using the concatenation method for point clouds and textures, but not when using the replacement method. (Due to the small number of car point clouds, a portion of the scene point clouds were replaced with car point clouds and the same was done with textures.) How did you guys solve the problem of scene editing?

How to inference in headless mode?

I found the following code in src/train.py line 523

parser.add('--inference', action='store_bool', default=False)

Does this mean there's some way to run src/train.py to inference?

viewer.py Error

Hi, I tried to run viewer.py using this command:
python viewer.py --config downloads/kitti6.yaml
But I faced this error :

loading pointcloud...
no normals in Data/kitti6_368_total/pointcloud.ply
=== 3D model ===
VERTICES:  2547322
EXTENT:  [ -84.91281891  -12.33472538 -234.02790833] [ 68.9091568   47.1550293  685.07629395]
================
new viewport size  (1216, 368)
[i] Using GLFW (GL 4.6)
Net checkpoint: Data/logs/kitti6/checkpoints/UNet_stage_0_epoch_net.pth
Texture checkpoint: Data/logs/kitti6/checkpoints/PointTexture_stage_0_epoch_scene.pth
Traceback (most recent call last):
  File "/home/user/READ/viewer.py", line 555, in <module>
    my_app = MyApp(args)
  File "/home/user/READ/viewer.py", line 201, in __init__
    self.model = OGL(self.scene, self.scene_data, self.viewport_size, net_ckpt, 
  File "/home/user/READ/READ/gl/nn.py", line 89, in __init__
    pipeline, args = load_pipeline(net_ckpt, args_to_update=args_upd)
  File "/home/user/READ/READ/pipelines/pipeline.py", line 45, in load_pipeline
    pipeline = get_module(args.pipeline)()
  File "/home/user/READ/READ/utils/train.py", line 152, in get_module
    assert m is not None, f'{path} not found'
AssertionError: npbg.pipelines.ogl.TexturePipeline not found
deleting buffers...

Looking forward for your help.
Thanks!

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.