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

How to export train result as ply #84

Closed
Knni9ht opened this issue Oct 24, 2024 · 20 comments
Closed

How to export train result as ply #84

Knni9ht opened this issue Oct 24, 2024 · 20 comments

Comments

@Knni9ht
Copy link

Knni9ht commented Oct 24, 2024

I want export the train result as a ply file.But the ns-export commend did not work.

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

It should work.

ns-export gaussian-splat --load-config [path to dn_splatter model config.yml file] --output-dir ./splat/

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

Did you experience some error?

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

On the dn-splatter environment,the ns-export gaussian-splat commend didnot do anything.There was nothing happened after I use the commend,just passed,nothing output.

So I switched to gsplat environment. And I used commendns-export gaussian-splat --load-config,but it seemed that the config.yaml was not right.Then I modified the config.yaml from the gsplat training config.yaml.And then it worked.

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

Do you consider to build a standard export process like gsplat?

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

What do you mean that the ns-export gaussian-splat did not do anything? Can you please provide more information. The output is generated into a separate file. There is not much output in the actual terminal log, but if you inspect the output folder you will find the splat.ply file there.

e.g. the command ns-export gaussian-splat --load-config path_to_/config.yml --output-dir ./my_output
will generate a new file called ./my_output/splat.ply which is the ply file you want.

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

Do you consider to build a standard export process like gsplat?

ns-export gaussian-splat already does gaussian splatting export into a .ply file, which is viewable in other applications of viewers.

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

Here are steps to create a splat.ply file:

  1. train a model using ns-train dn-splatter [options]
  2. make a note of where the config.yml file is saved after training.
  3. run ns-export gaussian-splat --load-config path_to_/config.yml --output-dir ./my_output and it will create a new file called /my_output/splat.ply

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image

just prinnted nothing

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

image

just prinnted nothing

Have you checked what is inside the exportPly/20 folder?

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image

just prinnted nothing

Have you checked what is inside the exportPly/20 folder?

yeah,there was an empty directory

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

This is the expected behaviour:

image

What does the command ns-export --help or ns-export gaussian-splat --help say? I am wondering if there are some problems with the nerfstudio installation

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

it was still nothing
image

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

Can you please show if nerfstudio is installed:

pip show nerfstudio
pip show dn_splatter

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

Can you run the command ns-install-cli and then try again. Also does training with dn-splatter work i.e. does ns-train dn-splatter work?

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image
train process worked

@Knni9ht
Copy link
Author

Knni9ht commented Oct 24, 2024

image
the command ns-install-cli did not work because i use windows?

@maturk
Copy link
Owner

maturk commented Oct 24, 2024

I find it strange that ns-export is not working for you. This is expected output when running the command. I am not sure what is wrong, but I suspect somehow nerfstudio is not completely installed correctly, since the cli scripts are not working on your machine. But you also mentioned that you switched to some other conda environment (gsplat?) and you were able to run the ns-export command? Is my understanding correct?

image

@Knni9ht
Copy link
Author

Knni9ht commented Oct 28, 2024

I find it strange that ns-export is not working for you. This is expected output when running the command. I am not sure what is wrong, but I suspect somehow nerfstudio is not completely installed correctly, since the cli scripts are not working on your machine. But you also mentioned that you switched to some other conda environment (gsplat?) and you were able to run the ns-export command? Is my understanding correct?

image

I fixed it by nerfstudio-project/nerfstudio#3483 (comment)

@Knni9ht Knni9ht closed this as completed Oct 28, 2024
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

2 participants