Comments (5)
Thanks for your support! I am sorry I did not ever convert the models into ONNX format, and I am not sure which specific task you are focusing on, but if you wanna use the pytorch model in tensorflow or so, you could consider manually storing the pretrained weights from the dict after loading the .pth files. Then, you need to load the weights into the modules (like nn.conv or nn.linear) of the DL lib you would like to use in a compatible way. The custom pointops kernels work for data/feature processing, so they are sperate from these learnable modules, but if you do not use pytorch lib, you may have to rewrite these kernels to ensure a similar process.
For classification, you could remove the flag "--cuda_ops" to replace the custom kernels with pure pytorch version. But for segmentation, you have to use the kernels for grid sampling.
from repsurf.
Hi,
thanks for the answer. I want to run the inference on segmentation task from the C++. I thought that the cleanest way is to convert the model to ONNX and then just invoke the forward pass from the C++ script but ONNX has some troubles with custom cuda kernels.
from repsurf.
I am not familiar with ONNX lib, but I think it would be a good news to rewrite the kernels as the kernel files (.cu) are written in a style very similar to c++. Maybe you can try working on it.
from repsurf.
Will look into it. Thanks!
from repsurf.
Thanks for your support! I will close the issue
from repsurf.
Related Issues (20)
- How to train and evaluate the model on multiple GPUs? HOT 4
- IoU for each category in 6-fold cross validation of S3DIS
- The problem about centroid in Umbrella
- problem of multiprocessing HOT 4
- Problem of the precalculated class weight HOT 1
- Testing without cuda / converting to onnx runtime
- pointops module - cuda extensions on windows HOT 11
- segmentation for ScanNet HOT 1
- 您好,想问问单卡3090的超参数您试过没没啊 HOT 3
- Unable to reproduce the results of semantic segmentation on S3DIS HOT 1
- TypeError: knnquery_cuda() HOT 3
- 经过伞变换之后的值会很小,经过一些relu和卷积操作会出现很多nan值?
- about flops and params HOT 2
- Segmentation Validate Stalls HOT 5
- 复现论文在scannet上结果时有较大出入,想要一份您在Scannet数据集上的dataloader文件。
- Can you provide a SUN RGB-D load and train code
- Methods about how to render point clouds
- Have you tested RepSurf on other segmentation backbones?
- How do I run this network with my own data?
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 repsurf.