Giter VIP home page Giter VIP logo

Comments (6)

mlfetsch75 avatar mlfetsch75 commented on August 15, 2024

Similar error running app.py alone. Confirmed nvdiffrast installed with pip. confirmed able to import with conda env python.

Downloading (…)rocessor_config.json: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 244/244 [00:00<?, ?B/s]
Traceback (most recent call last):
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\InstantMesh\app.py", line 101, in
model.init_flexicubes_geometry(device, fovy=30.0)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\InstantMesh\src\models\lrm_mesh.py", line 79, in init_flexicubes_geometry
renderer = NeuralRender(device, camera_model=camera)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\InstantMesh\src\models\geometry\render\neural_render.py", line 73, in init
self.ctx = dr.RasterizeCudaContext(device=device)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\lib\site-packages\nvdiffrast\torch\ops.py", line 177, in init
self.cpp_wrapper = _get_plugin().RasterizeCRStateWrapper(cuda_device_idx)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\lib\site-packages\nvdiffrast\torch\ops.py", line 118, in _get_plugin
torch.utils.cpp_extension.load(name=plugin_name, sources=source_paths, extra_cflags=opts, extra_cuda_cflags=opts+['-lineinfo'], extra_ldflags=ldflags, with_cuda=True, verbose=False)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\lib\site-packages\torch\utils\cpp_extension.py", line 1308, in load
return _jit_compile(
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\lib\site-packages\torch\utils\cpp_extension.py", line 1736, in _jit_compile
return _import_module_from_library(name, build_directory, is_python_module)
File "F:\tmp\Diffuser\miniconda3\envs\instantmesh\lib\site-packages\torch\utils\cpp_extension.py", line 2136, in _import_module_from_library
module = importlib.util.module_from_spec(spec)
File "", line 571, in module_from_spec
File "", line 1176, in create_module
File "", line 241, in _call_with_frames_removed
ImportError: DLL load failed while importing nvdiffrast_plugin: The specified module could not be found.

from instantmesh.

sumanttyagi avatar sumanttyagi commented on August 15, 2024

#34

from instantmesh.

sumanttyagi avatar sumanttyagi commented on August 15, 2024

@mlfetsch75 @k1ckmefroml1f3 i found the solution for this not sure whether this is right way to fix it
!) Uninstall previous cuda version from the system
2) install latest cuda toolkit from 12.1 and drivers
3) set the env path for this - should happen by itself but sometimes overwrite issue
4) restart you env .

from instantmesh.

iiiCpu avatar iiiCpu commented on August 15, 2024

Long story short, nvdiffrast_plugin is build against CUDA_PATH version, not first (or the only) in PATH. So, delete nvdiffrast_plugin and set correct CUDA_PATH before run.

rmdir /S %userprofile%\AppData\Local\torch_extensions\torch_extensions\Cache\py310_cu121\nvdiffrast_plugin
set CUDA_PATH=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v12.1\
python app.py

UPD: removed quotes from path, it leads to errors in some cases

from instantmesh.

wikeeyang avatar wikeeyang commented on August 15, 2024

Thanks for the fix and reply.

from instantmesh.

mlfetsch75 avatar mlfetsch75 commented on August 15, 2024

@iiiCpu @sumanttyagi Way simpler than how I was trying to resolve. Thanks very much.

from instantmesh.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.