Genesis icon indicating copy to clipboard operation
Genesis copied to clipboard

AttributeError: module 'LuisaRenderPy' has no attribute 'create_scene'

Open Jiaviz opened this issue 1 year ago • 3 comments

Screenshot from 2024-12-19 17-31-47

When running gs.renderers.RayTracer(), I get an error saying that module 'LuisaRenderPy' has no attribute 'create_scene'. However, I cannot find the 'create_scene' API in LuisaRenderPy's pybind API code.

Jiaviz avatar Dec 19 '24 09:12 Jiaviz

@YilingQiao could this be due to a commit mismatch?

zhouxian avatar Dec 19 '24 14:12 zhouxian

I changed the commit number. Can you try again?

YilingQiao avatar Dec 19 '24 14:12 YilingQiao

@YilingQiao I built Alif-01'LuisaRender fork. However, I cannot find the 'create_scene' API in LuisaRenderPy's pybind API code too.

print(dir(LuisaRenderPy)) ['Camera', 'Integrator', 'LogLevel', 'Shape', 'Spectrum', 'Surface', 'Texture', 'Transform', 'doc', 'file', 'loader', 'name', 'package', 'spec', 'add_emission', 'add_environment', 'add_surface', 'destroy', 'init', 'render_frame', 'update_camera', 'update_shape'] It seems that LuisaRenderPy don't have 'create_scene' ?

Xu-Xuanhui avatar Dec 20 '24 11:12 Xu-Xuanhui

I have install the LuisaRender Ubuntu 22.04 Nvidia driver 535.183.01,cuda 12.2! I update the cuda! python 3.10 git clone https://github.com/Genesis-Embodied-AI/Genesis.git cd Genesis git submodule update --init --recursive

You should follow the user guider to install the Dependencies.

cd genesis/ext/LuisaRender cmake -S . -B build -D CMAKE_BUILD_TYPE=Release -D PYTHON_VERSIONS=3.10 -D LUISA_COMPUTE_DOWNLOAD_NVCOMP=ON -D LUISA_COMPUTE_ENABLE_GUI=OFF cmake --build build -j $(nproc)

Finall I copy the etx folder to my conda envs. It works!

Xu-Xuanhui avatar Dec 20 '24 14:12 Xu-Xuanhui

Yet again thanks @Xu-Xuanhui :D

doc here

zswang666 avatar Dec 20 '24 18:12 zswang666