AiuniAI / Unique3D

Official implementation of Unique3D: High-Quality and Efficient 3D Mesh Generation from a Single Image
https://wukailu.github.io/Unique3D/
MIT License
1.96k stars 131 forks source link

Error when running demo #6

Open yejr0229 opened 3 weeks ago

yejr0229 commented 3 weeks ago

Thanks for your great work! I use this command: python app/gradio_local.py --port 7860, and get the following error: [F glutil.cpp:338] eglInitialize() failed Aborted (core dumped) I have change "dr.RasterizeGLContext" to "dr.RasterizeCudaContext" in mesh_reconstruction/render.py and still can't work, how to deal with it?

wukailu commented 3 weeks ago

It looks like the nvdiffrast library is not installed correctly. You can try the following installation script (with root privileges):

# Setup nvdiffrast
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
    pkg-config \
    libglvnd0 \
    libgl1 \
    libglx0 \
    libegl1 \
    libgles2 \
    libglvnd-dev \
    libgl1-mesa-dev \
    libegl1-mesa-dev \
    libgles2-mesa-dev \
    cmake \
    curl \
    mesa-utils-extra
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1
export LD_LIBRARY_PATH=/usr/lib64:$LD_LIBRARY_PATH
export PYOPENGL_PLATFORM=egl
echo '{"file_format_version":"1.0.0","ICD":{"library_path":"libEGL_nvidia.so.0"}}' > /usr/share/glvnd/egl_vendor.d/10_nvidia.json
pip install git+https://github.com/NVlabs/nvdiffrast.git
yejr0229 commented 3 weeks ago

Thanks for your help! I wonder will you release the inference code for custom input images?

wukailu commented 2 weeks ago

I didn't understand what is meant by ‘custom input images’? If you want to use 3D generation as a function call, our suggestion is to use Gradio Client to interact with Gradio.

zixian-wu commented 3 days ago

I have the same issue,and I have run the install script.

[F glutil.cpp:338] eglInitialize() failed Aborted (core dumped)