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

Problem with : in filename for #1

Open
ctralie opened this issue May 25, 2020 · 1 comment
Open

Problem with : in filename for #1

ctralie opened this issue May 25, 2020 · 1 comment

Comments

@ctralie
Copy link

ctralie commented May 25, 2020

First of all, this is amazing work! So thank you for posting this code publicly.

I ran into a minor error when executing the code following your directions

  File "main.py", line 67, in <module>
    part_mesh.export(os.path.join(opts.save_path, f'recon_iter:{i}.obj'))
  File "/home/ctralie/code/point2mesh/models/layers/mesh.py", line 344, in export
    self.main_mesh.export(file)
  File "/home/ctralie/code/point2mesh/models/layers/mesh.py", line 225, in export
    export(file, vs, self.faces)
  File "/home/ctralie/code/point2mesh/utils.py", line 73, in export
    with open(file, 'w+') as f:
OSError: [Errno 22] Invalid argument: './checkpoints/giraffe/recon_iter:100.obj'

I don't know how general this is, but on my machine, Python does not appear to like the ":" in the filename. Once I changed this to a "_" (e.g. "recon_iter_300.obj" instead of "recon_iter:300.obj") on line 67 of main.py, the code worked beautifully.

@ranahanocka
Copy link
Owner

Hi @ctralie ,

Thanks for letting me know. I updated main.py to prevent others from having issues with this.

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