kalo-ai / ShapePFCN

Shape Projective Fully Convolutional Network
GNU General Public License v3.0
83 stars 20 forks source link

TEST MODE: ERROR: Cannot proceed: cannot read label file (storing all training label names & ids) #1

Closed peigolee closed 7 years ago

peigolee commented 7 years ago

Hi Kalov,

I tried to testing my data by command ./build_release/mvfcn.bin --skip-training --do-only-rendering --test-meshes-path /path/to/my/obj

For testing, no OBJ groups or labels txt files are needed. If they are found in the test directory, they will be simply used for evaluating test accuracy.

but it doesn't work.

here is my log

skip-mvfcn = 0 skip-mvfcn-train = 0 skip-crf-train = 0 do-not-use-crf-mvfcn = 0 do-not-use-pretrained-model = 0 do-only-rendering = 1 pooling-type = max max-number-of-faces = 500000 baseline_rendering = 0 fov = 0.0872665 num-cam-distances = 2 max-images-per-distances = 20 flat-shading = 1 point-rejection-angle = 0.707107

Entering testing mode

[2017-11-02 10:27:45] FCNShapes.cpp:269: ERROR: Cannot proceed: cannot read label file (storing all training label names & ids): data/psbAirplane/labels.txt

then I comment out FCNShape.cpp line 268

// read labels label_map.clear(); /*ifstream in_labels_file(FilePath::concat(Settings::train_meshes_path, LABELS_FILENAME)); if (!in_labels_file.good()) { THEA_ERROR << "Cannot proceed: cannot read label file (storing all training label names & ids): " << FilePath::concat(Settings::train_meshes_path, LABELS_FILENAME); return; } while (!in_labels_file.eof()) { string label; int id; if (in_labels_file.eof()) break; in_labels_file >> label; if (in_labels_file.eof()) break; in_labels_file >> id; label_map[label] = id;

THEA_CONSOLE << "Read training label: " << label << " [id: " << id << "]";

} in_labels_file.close();*/

then it coredump

below is my log

RenderSystem' Rendering main pass complete. Computing camera distances for mesh PCMesh_Sim_textured_textured.obj Rendering... Rendering main pass complete. Cleaning up... Done rendering /home/paige/Documents/3D_SEGMEMTATION/ShapePFCN/test2/PCMesh_Sim_textured_textured.obj (core dumped)

i have no idea why... could you please help me? thanks a lot.

kalo-ai commented 7 years ago

When labeling metadata are not found in testing mode, instead of interrupting the program and reporting an error, I now continue the execution and return a warning. However, running the testing mode of the method without training does not make much sense. I also updated the documentation to reflect this. I also added one more clarification in the documentation about a potential crash at the end of the rendering pass for some systems (this is happening at the very end of the rendering pass when all rendered images are produced and does not affect training/testing).