Comments (8)
Hi PedroCastro,
The former testing code didn't use synchronize, which caused incorrect time records for each stage.
I add torch.cuda.synchronize() and find the forward pass indeed costs about 27 ms and the RANSAC costs about 14ms.
Thank you for pointing out the mistakes!
from pvnet.
How about testing several times and taking the average time?
Your RANSAC and PnP performance is similar to us, but the forward pass has a large gap.
Our running time does not include the metric measuring.
The reason our method is real-time is that our backbone is Resnet-18.
from pvnet.
Thanks for the answer!
Well, I am already taking the average among all test images for the Ape object. Do you mean taking the avg of multiple objects? That shouldn't change the inference speed so I am not sure what I can measure differently.
I agree that Resnet-18 is quite fast. But for example, this pre-print which also uses Resnet-18 with a much smaller input (320x240) claims their forward propagation takes 11ms, on a Titan X.
Am I measuring a different call than what you guys did? How did you measure it?
Thanks again for the conversation!
from pvnet.
Their architecture has three decoders.
I will ask my partner to double check our forward pass time.
from pvnet.
Does your forward pass include the data loading?
from pvnet.
Oh @pengsida, you are right! But even if you divide the full time by 3 (which would divide the time on the encoder part as well) it would match your speed with half the resolution.
And no, it doesnt take the data loading into account! I synchronize cuda calls before and after the forward pass.
My code is like this:
torch.cuda.synchronize()
start.record()
seg_pred, vertex_pred, loss_seg, loss_vertex, precision, recall = net(image, mask, vertex, vertex_weights)
torch.cuda.synchronize()
end.record()
time_accumulator += [start.elapsed_time(end)]
and then I avg the time at the end.
I think your method does run at 25fps but the way your time is discretized in the paper might not be right.
from pvnet.
Probably.
A double check is needed.
It is indeed hard to directly measure the cuda running time.
Whatever, our approach is real-time in our use.
from pvnet.
Yes, good job and good paper ;)
Let me know what you find!
from pvnet.
Related Issues (20)
- 环境问题 HOT 1
- lib中文件缺失 HOT 1
- 关于compute_vertex()函数中的问题请教 HOT 1
- Question about the download link for datasets HOT 1
- Invalid datasets link HOT 1
- 关于训练的物体泛化性的疑惑 HOT 1
- NameError: name 'Resnet18_8s' is not defined
- File "/home/mona/anaconda3/envs/pvnet/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1916, in _run_ninja_build raise RuntimeError(message) from e RuntimeError: Error compiling objects for extension HOT 1
- Can not download the datasets HOT 1
- error with build_ceres.sh HOT 1
- cat demo
- replace torch.gesv with torch.linalg.solve
- visualize_voting_ellipse fails in visualization.ipynb HOT 1
- import lib.ransac_voting_gpu_layer.ransac_voting as ransac_voting ImportError: /home/mona/pvnet/lib/ransac_voting_gpu_layer/ransac_voting.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail19maybe_wrap_dim_slowEllb
- 如果我想针对PVNet BN层进行剪枝,我应该怎么做
- conda环境安装了transforms3d但是运行脚本时出现No module错误
- can i run the pvnet on a windows evironemnt of to google colab
- about vector compute
- How to get keypoint uncertainty
- the pretrained models cannot be downloaded
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 pvnet.