One-2-3-45 / One-2-3-45

[NeurIPS 2023] Official code of "One-2-3-45: Any Single Image to 3D Mesh in 45 Seconds without Per-Shape Optimization"
http://one-2-3-45.com
Apache License 2.0
1.56k stars 88 forks source link

3d mesh reconstruction error #41

Open MHassan1122 opened 9 months ago

MHassan1122 commented 9 months ago

when i gave an image so the mode can create two stages images and save multi view images but the mesh.ply cannot be saved in the desired directory. as shown in the picture example_error

Dustinpro commented 9 months ago

Did you accidentally comment out "os.system(bash_script)"? It seems that the reconstruction was not executed; thus, no mesh was generated. If it is executed, it will print many lines of information.

MHassan1122 commented 9 months ago

Dear @Dustinpro I want to implement it in windows may be this will be the caused because the model is checked on ubuntu. so how i can run it the bashscript in windows because I just open the example.ipynb file to run it, but it cause that issue as you metion that reconscruction was not executed.

bash_script = f'CUDA_VISIBLE_DEVICES={device_idx} python exp_runner_generic_blender_val.py \ --specific_dataset_name {exp_dir} \ --mode export_mesh \ --conf confs/one2345_lod0_val_demo.conf \ --resolution {_MESH_RESOLUTION}'

Dustinpro commented 9 months ago

What was the error?

MHassan1122 commented 9 months ago

when i call to reconstruct method , it can't reconscruct the 3d model.

mesh_path = reconstruct(example_dir, output_format=".glb", device_idx=_GPU_INDEX)

as mentioned earlier that I use windows , maybe it cuased do to this. the reconstruct method can not work properly maybe due to bashscript availibility.