Skip to content

i2tex script exits with either UVAtlasPack failed with code 0x80070057 or Segmentation fault #65

Description

@renwerx

Zorin OS (Ubuntu 22.04)
RTX 3060 12Gb
16Gb RAM

When executing the following:

python -m scripts.texture_i2tex \
--image ./input/assistant04.png \
--mesh ./input/assistant04_remeshed.glb \
--save_dir ./output --save_name i2tex_sample \
--remove_bg \
--variant sd21

I get:

Loading pipeline components...: 100%|███████████████████████████████████████████████████████████████████████████████████████████████| 6/6 [00:00<00:00,  8.68it/s]
/home/simon/miniconda3/envs/mvadapter/lib/python3.10/site-packages/timm/models/layers/__init__.py:48: FutureWarning: Importing from timm.models.layers is deprecated, please import via timm.layers
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.layers", FutureWarning)
/home/simon/miniconda3/envs/mvadapter/lib/python3.10/site-packages/timm/models/registry.py:4: FutureWarning: Importing from timm.models.registry is deprecated, please import via timm.models
  warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
/home/simon/miniconda3/envs/mvadapter/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. 
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
  warnings.warn(
Using /home/simon/.cache/torch_extensions/py310_cu121 as PyTorch extensions root...
Detected CUDA files, patching ldflags
Emitting ninja build file /home/simon/.cache/torch_extensions/py310_cu121/pb_solver/build.ninja...
/home/simon/miniconda3/envs/mvadapter/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. 
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
  warnings.warn(
Building extension module pb_solver...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
ninja: no work to do.
Loading extension module pb_solver...
Using /home/simon/.cache/torch_extensions/py310_cu121 as PyTorch extensions root...
No modifications detected for re-loaded extension module pb_solver, skipping build step...
Loading extension module pb_solver...
Pipeline ready.
file contains a `world` node, we may stomp on it
/home/simon/miniconda3/envs/mvadapter/lib/python3.10/site-packages/torch/utils/cpp_extension.py:1964: UserWarning: TORCH_CUDA_ARCH_LIST is not set, all archs for visible cards are included for compilation. 
If this is not desired, please set os.environ['TORCH_CUDA_ARCH_LIST'].
  warnings.warn(
100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 50/50 [00:34<00:00,  1.46it/s]
file contains a `world` node, we may stomp on it
[Open3D INFO] actual parallel_partitions 7
Traceback (most recent call last):
  File "/home/simon/miniconda3/envs/mvadapter/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/simon/miniconda3/envs/mvadapter/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/media/simon/Storage/Programs/MVAdapter/MV-Adapter/scripts/texture_i2tex.py", line 109, in <module>
    out = texture_pipe(
  File "/media/simon/Storage/Programs/MVAdapter/MV-Adapter/mvadapter/pipelines/pipeline_texture.py", line 182, in __call__
    process_raw(mesh_path, mesh_path_new, preprocess=preprocess_mesh)
  File "/media/simon/Storage/Programs/MVAdapter/MV-Adapter/mvadapter/utils/mesh_utils/mesh_process.py", line 287, in process_raw
    uv_parameterize_uvatlas(v_pos, t_pos_idx).reshape(-1, 2).astype(np.float32)
  File "/media/simon/Storage/Programs/MVAdapter/MV-Adapter/mvadapter/utils/mesh_utils/mesh_process.py", line 243, in uv_parameterize_uvatlas
    mesh.compute_uvatlas(
RuntimeError: [Open3D Error] (std::tuple<float, int, int> open3d::t::geometry::kernel::uvunwrapping::ComputeUVAtlas(open3d::t::geometry::TriangleMesh&, size_t, size_t, float, float, int, int)) /root/Open3D/cpp/open3d/t/geometry/kernel/UVUnwrapping.cpp:262: UVAtlasPack failed with code 0x80070057

If I add the --preprocess_mesh flag I no longer get the Open3D INFO or Error but in their place I simply get the text "Segmentation fault" before the process exits to the environment prompt.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions