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

Issue with running demo #28

Open
Zvyozdo4ka opened this issue Aug 24, 2023 · 2 comments
Open

Issue with running demo #28

Zvyozdo4ka opened this issue Aug 24, 2023 · 2 comments

Comments

@Zvyozdo4ka
Copy link

Why it is not possible to run demo? Why does It raise this issues? What is it required as input?

python scripts/create_mvr_data_from_mesh.py --points example_data/mesh/yoga6.ply --output example_data/images --num_cameras 128 --image-size 512 --tri_color_light --point_lights --has_specular
  0%|                                                                                                                                                              | 0/128 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "scripts/create_mvr_data_from_mesh.py", line 241, in <module>
    imageio.imwrite(os.path.join(depth_dir, "%06d.exr" % idx),
  File "/home/admin/anaconda3/envs/DSS/lib/python3.8/site-packages/imageio/core/functions.py", line 303, in imwrite
    writer = get_writer(uri, format, "i", **kwargs)
  File "/home/admin/anaconda3/envs/DSS/lib/python3.8/site-packages/imageio/core/functions.py", line 226, in get_writer
    raise ValueError(
ValueError: Could not find a format to write the specified file in single-image mode

Is there any other detailed documentation? And would be denoising function available?

@romantic-black
Copy link

I'm facing the same problem and I use cv2 instead of imageio to solve it.
Before import cv2 add os.environ["OPENCV_IO_ENABLE_OPENEXR"]="1"

                cv2.imwrite(os.path.join(depth_dir, "%06d.exr" % idx),
                                dense_depths[b, ...].cpu().numpy())

@Zvyozdo4ka
Copy link
Author

@romantic-black Thank you!

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