flanggut / smvs

Shading-aware Multi-view Stereo
BSD 3-Clause "New" or "Revised" License
252 stars 76 forks source link

Killed while running #36

Closed philleer closed 4 years ago

philleer commented 4 years ago

Hi, I am trying to get the reconstruction via smvs for Strecha fountain-p11 dataset, makescene and sfmrecon are both from mve pipeline, and then smvsrecon, while it can load something and Starting to run, it always stuck after the starting, shown as below, no additional info given to the standard output

Initializing scene with 11 views...
Initialized 11 views (max ID is 10), took 1ms.
Reading Photosynther file (11 cameras, 17376 features)...
Automatic input scale: 0
Input embedding: undistorted
Output embedding: smvs-S0
Running view selection for 11 views...  done, took 0.89s.
Starting 1/11 ID: 8 Neighbors: 7 9 6 10 5 4
Starting 2/11 ID: 6 Neighbors: 5 7 4 3 8 2
Starting 3/11 ID: 2 Neighbors: 3 1 4 0 5 6
Starting 4/11 ID: 5 Neighbors: 6 4 3 7 2 1
Starting 5/11 ID: 10 Neighbors: 9 8 7 6 5 4
Starting 6/11 ID: 4 Neighbors: 5 3 2 6 1 7
Starting 7/11 ID: 1 Neighbors: 2 3 0 4 5 6
Starting 8/11 ID: 9 Neighbors: 8 7 10 6 5 4
Starting 9/11 ID: 0 Neighbors: 1 2 3 4 5 6
Starting 10/11 ID: 7 Neighbors: 6 5 8 4 9 3
Starting 11/11 ID: 3 Neighbors: 2 4 1 5 6 0
./runsmvs.sh: line 28: 11416 Killed ${smvs} -S ${scene_dir}

Any idea about the error? Much thanks in advance.

flanggut commented 4 years ago

This doesn't reveal much about the error. Can you send a link to the dataset in some way so I can try to look into it?

philleer commented 4 years ago

Dataset

https://github.com/openMVG/SfM_quality_evaluation/tree/master/Benchmarking_Camera_Calibration_2008/Herz-Jesus-P8

Software Version

BashScript

#!/bin/bash

workspace_path=/home/phil/mvs_result_shading/smvs_result
image_dir=${workspace_path}/${1}
scene_dir=${workspace_path}/${2}
mve=/home/phil/misc_codes/mve/apps
smvs=/home/phil/misc_codes/smvs/smvsrecon

maxpixel=60000000

intrinsic_fp="2759.48,0,0,0.4950,0.4916,0.9983" # fountain-p11
intrinsic=${intrinsic_fp}

${mve}/makescene/makescene --original \
        --images-only ${image_dir} \
        --init-intrinsics=${intrinsic} \
        --max-pixels=${maxpixel} \
        ${scene_dir} &&

${mve}/sfmrecon/sfmrecon --max-pixels=${maxpixel} \
        --fixed-intrinsics \
        --verbose-ba ${scene_dir} &&

${smvs} -S ${scene_dir} &&

${mve}/fssrecon/fssrecon ${scene_dir}/smvs-S1.ply \
        ${scene_dir}/smvs-surface.ply &&

${mve}/meshclean/meshclean --threshold=8.0 \
        --delete-scale ${scene_dir}/smvs-surface.ply \
        ${scene_dir}/smvs-clean.ply

Machine

Ubuntu 18.04.2 LTS
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.87.00    Driver Version: 418.87.00    CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla V100-PCIE...  Off  | 00000000:02:00.0 Off |                    0 |
| N/A   37C    P0    28W / 250W |      0MiB / 32480MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
flanggut commented 4 years ago

The datasets (fountain p11 and the one you linked) run just fine for me with these commands. It might be some system level thing that kills the process. Can you try just running smvsrecon with just one thread -t 1?

philleer commented 4 years ago

Thanks for your reply, maybe it is caused by the server's system, I tried the same data with the same code on a different machine and it ran well. But thank you anyway.