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

Error for final report generation. #91

Open
xfanhe opened this issue May 12, 2024 · 0 comments
Open

Error for final report generation. #91

xfanhe opened this issue May 12, 2024 · 0 comments

Comments

@xfanhe
Copy link

xfanhe commented May 12, 2024

Thank you for your code!
I'm a beginner for 3D reconstruction and two problems (perhaps? : ) ) were found when I try to run the code.

Generate a mesh and save it for the report.

The problem is at training/trainer.py, the generate_mesh(self) function.
The path for the mesh generation is below,and then save it.

        path = '/'.join([self.opt.training_media_path, str(self.flags.media_count)]) + ".obj"
        mesh_processor.save(mesh, path, self.colormap)

But the mesh_processor.save(mesh, path, self.colormap) will change the extension to .ply,which will overwrite somewhere an existing file.

pymesh.save_mesh(path[:-3] + "ply", mesh, *mesh.get_attribute_names(), ascii=True)

The http server for the final report.

The command to start a simple http server is as below in auxiliary/visualization.py.

cmd = f"{sys.executable} -m http.server {http_port} > /dev/null 2>&1"
CMD = f'TMUX=0 tmux new-session -d -s httpserver \; send-keys "{cmd}" Enter'
os.system(CMD)

In my case(python 3.6.13, the same as the requirement.),it failed. And the command cmd = f"{sys.executable} -m http.server {http_port} > /dev/null 2>&1" works well for me.

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

1 participant