Comments (10)
Prior to running the tests, please run the command source setenv.sh
, which will point Python to the necessary libraries. This needs to be better documented, so thank you for bringing it up!
@vmlaker, we use a version of USD that has been adapted to Python 3.6+. You can check it out here https://developer.nvidia.com/usd#binaries. Note, USDView remains only compatible with Python 2.
from kaolin.
Module pxr
is Pixar's USD.
What is strange is pxr
module can only be built for Python 2 (using their build_usd.py
script), while Kaolin build expects Python 3.6+.
I'm wondering then how is Kaolin supposed to work at all with USD..?
from kaolin.
Thanks JFL,
There is one thing that is puzzling me though.
I can import kaolin without errors.
and the paths seem to be in PYTHONPATH and LD_LIBRARY_PATH
However, when I run the test I still get the 'No module named 'pxr'' error.
attached here some tests on the interpreter.
Maybe the pxd has not been compiled properly...?
Perhaps I should try using the built ones in https://developer.nvidia.com/usd#binaries.
regards
Python 3.6.8 (default, Oct 7 2019, 12:59:55)
[GCC 8.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kaolin
>>> import os
>>> print(os.environ.get('LD_LIBRARY_PATH'))
home/pabs/PycharmProjects/kaolin/build/target-deps/nv_usd/release/lib/
>>> print(os.environ.get('PYTHONPATH'))
home/pabs/PycharmProjects/kaolin/build/target-deps/nv_usd/release/lib/python
>>>
from kaolin.
@pbermell We just merged a change this morning that should fix these issues. Please try pulling the changes and running the setup again and let us know whether you still encounter the same error. Thanks for posting the issue!
from kaolin.
Hi,
I am having some trouble solving this on windows 10. I am getting the same errors as posted above. Do you have any suggestions as to how I might go about doing this?
Best regards,
Tobias
from kaolin.
Hello @Tojens, we don't officially support Windows currently (it's coming!), but if you're getting a pxr
related error when running tests, you can disable that particular test by commenting out or deleting the file located under tests/datasets/test_usdfile.py
. Please let me know if this helps!
from kaolin.
Thank you for the quick response - that was very helpful :). It has been fairly straightforward to get started even on windows and I am very interested in seeing this evolve. I am crossing my fingers that you might be able to create some documentation/examples for loading datasets like Paris-Lille and applying a classification/segmentation algorithm at some point :)
from kaolin.
@Tojens Thank you for the feedback! We have many updates planned for the near future and we will continue to add new functionality and support for more models and datasets. We will certainly look at whether to add support for Paris-Lille, though I can't provide anything more concrete yet.
Closing this as issue is resolved.
from kaolin.
@Tojens Can you tell me more details on your Windows setup that's working for Kaolin?
I'm getting a Cuda compilation error I haven't been able to resolve yet..
from kaolin.
Hi did you find a solution to it?
In my case, after installing usd-core (latest version:22.3) through pip install, the error message does not appear .
https://pypi.org/project/usd-core/
from kaolin.
Related Issues (20)
- How to get 2D keypoints from the 3D bounding box generated from Kaolin and reversing it back? HOT 2
- ValueError: numpy.ndarray has the wrong size, try recompiling. Expected 80, got 88 HOT 1
- Can not run kaolin-dash3d HOT 2
- CUDA error: no kernel image is available for execution on the device HOT 3
- How to save the optimized texture map?
- ImportError: cannot import name 'TriangleMesh' from 'kaolin.rep' HOT 1
- Issues in DIB-R rasterization HOT 2
- Running the test code did not yield results HOT 2
- Geometry issue
- Attribute error in trianglemesh_to_sdf HOT 4
- ImportError: /home/j222/vid2avatar-main/kaolin/kaolin/_C.so: undefined symbol: _ZNK2at10TensorBase8data_ptrIdEEPT_v HOT 3
- Support vertex interpolation for USD
- Nvdiffrast not installed automatically? HOT 2
- RuntimeError: "packed_rasterize_forward_cuda" not implemented for 'Half'
- Cannot render a mesh which only contains vertices and faces. no uvmap. HOT 1
- conflict with bpy
- Runtime with flexicubes
- Request for CPU-Only Wheels for Non-GPU Dependent Modules HOT 3
- use DMTeT on UDF field?
- Invitation to Your First Open Source Project Organization 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 kaolin.