Comments (6)
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.
from instantmesh.
@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.
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.
Thanks for the fix and reply.
from instantmesh.
@iiiCpu @sumanttyagi Way simpler than how I was trying to resolve. Thanks very much.
from instantmesh.
Related Issues (20)
- Training time?
- RuntimeError: handle_0 INTERNAL ASSERT FAILED at "../c10/cuda/driver_api.cpp":15, please report a bug to PyTorch.` HOT 2
- not all arguments converted during string formatting log HOT 2
- How to Improve Texture Quality and is there a way to tweak the model generation part by providing the normal maps?
- Torch cache not releasing
- Command '['ninja', '-v']' returned non-zero exit status 1 HOT 1
- Loading diffusion model ... Error HOT 1
- IndexError: too many indices for tensor of dimension 2
- Using other multi view models? HOT 1
- Camera Augmentation in the released training code
- 编译中断问题
- 怎么配置数据集文件
- What is I wish to generate the mesh with multiple images ? - I have front view, left view, right view and back view of a chair - how can I create a mesh utilising all these images ? HOT 13
- Cuda version error when duplicating space on Hugging Face
- could you provide the rendering scripts to evalutate ? HOT 1
- 8GB of models downloading every time I launch app.py
- can providing good quality of image will not impact quality HOT 2
- INTERNAL ASSERT FAILED after generating multiviews
- Training CUDA Out Of Memory error HOT 5
- How to get the quantitative results as reported in the paper HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from instantmesh.