Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualizing output file about segmentation #27

Closed
xiankun1995 opened this issue Apr 28, 2018 · 8 comments
Closed

Visualizing output file about segmentation #27

xiankun1995 opened this issue Apr 28, 2018 · 8 comments

Comments

@xiankun1995
Copy link

Hello, thanks for your suggestions about how to get the .dat file yesterday.
I want to visualize this segmentation task result, so I use octree2ply convert the .dat files to point cloud, and this is my command:Octree2Ply.exe test_label_groundtruth.dat 1.
But when I run this command, I only get this:
default
I don't know how to solve it. Can you give me some suggestions again?
Thank you!

@wang-ps
Copy link
Contributor

wang-ps commented Apr 28, 2018

The octree2ply is used to convert the octree file to point cloud, not the test_label_groundtruth.dat file.

@xiankun1995
Copy link
Author

Oh,I understand...
But how should I use the .dat files?
And what should I do to visualize this segmentation task result?
Thanks a lot!

@wang-ps
Copy link
Contributor

wang-ps commented May 2, 2018

You can use an txt viewer to open these files. They are the predicted segmentation labels. And the order to these labels are in correspondence with the point clouds generated via the octree2ply.exe.
To visualize the results, you can render the point cloud and use the segmentation label as the point cloud color.

The method I provided is just one possible approach to dump the caffe output and visualize the results. There are many other more convenient ways, e.g. via Python. You can refer to the official tutorial of caffe or search the google.

@wang-ps wang-ps closed this as completed May 2, 2018
@xiankun1995
Copy link
Author

Thank you for helping me so many times.
and when I use txt viewer see the .dat files, I only get this:
zk1cfdxrr6x1 paw_ 8kivn
I think it is wrong. could you share me a correct dat file?
Thank you very much!

@wang-ps
Copy link
Contributor

wang-ps commented May 4, 2018

I think the reason is that the flag --save_seperately is wrongly set as false, it should be true.

@xiankun1995
Copy link
Author

Sorry, I want to ask you one more question about the predicted segmentation labels.
I set the flag --save_seperately as true, and I can read the output files by using txt viewer.
In predicted file there are number 0, 1, 2, I think this is predicted segmentation labels. It has three types.
In groundtruth file there are number -1, 0, 1, 3, I do not know what does -1 mean and the difference between 2 and 3.
I guess -1 mean no label, could you tell me the answer?
Thank you very much!

@wang-ps
Copy link
Contributor

wang-ps commented May 10, 2018

Yes, -1 means no label, and it is ignored in the training stage.
If the max ground-truth label is 3, then the num_output should be set as 4, please refer to the line_416~433 in the file segmentation_5.prototxt.
If the ground-truth file contains only -1, 0, 1 and 3, it means that the 2nd part is missing in this object.

layer {
  name: "deconv2_ip"
  type: "Convolution"
  bottom: "deconv5"
  top: "deconv2_ip"
  convolution_param {
  ### NOTE: num_output should be changed according
  ###       to the segmentation part number
    num_output: 4
    kernel_h: 1
    kernel_w: 1
    stride: 1
    bias_term: false
    weight_filler {
      type: "msra"
    }
  }
}

@hducg
Copy link

hducg commented Dec 5, 2018

You can use an txt viewer to open these files. They are the predicted segmentation labels. And the order to these labels are in correspondence with the point clouds generated via the octree2ply.exe.
To visualize the results, you can render the point cloud and use the segmentation label as the point cloud color.

The method I provided is just one possible approach to dump the caffe output and visualize the results. There are many other more convenient ways, e.g. via Python. You can refer to the official tutorial of caffe or search the google.

Hi, can I ask a question about the input of octree2ply?

Octree2Ply [segmentation]
filelist: a text file of which each line specifies the full path name of a octree file

I was wondering how to create the filelist for octree2ply? I tried to use oct_list_test.txt generated by the data preparation script, but it did not work.

Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants