Comments (6)
一般是由于网络比较小, 一定尺度范围内的图像,一次前向过程中,GPU的核心计算单元并没有被用完导致时间消耗没有增加
from pytorch_retinaface.
我分别测的320x240,480x640,720x1280,1280x1920尺度的前向过程的时间,我是直接resiez的,可是时间还是很相近都是8ms,这是什么原因呢?
from pytorch_retinaface.
建议你打印出送入网络之前的shape, 我在GTX1070上测试, 时间与送入网络的尺度成正相关.
from pytorch_retinaface.
好的,我打印看看
from pytorch_retinaface.
我打印出来了,还是这样的结果,测试的时候是单张图像循环测试100次,然后计算平均的前向时间,不同尺度的平均时间还是很相近,
torch.Size([1, 3, 1280, 720])
net forward time: 0.0141
torch.Size([1, 3, 1280, 720])
net forward time: 0.0149
ave_time: 0.02009380340576172
torch.Size([1, 3, 640, 480])
net forward time: 0.0130
torch.Size([1, 3, 640, 480])
net forward time: 0.0125
ave_time: 0.019301908016204836
torch.Size([1, 3, 1920, 1080])
net forward time: 0.0140
torch.Size([1, 3, 1920, 1080])
net forward time: 0.0132
ave_time: 0.02022948145866394
from pytorch_retinaface.
请问找到原因了吗?为什么不同尺度的平均时间还是很相近,我用256*256尺寸的图片也需要14ms
from pytorch_retinaface.
Related Issues (20)
- Is it ok if we upload your models to Zenodo and distribute them?
- Fine-tuning Resnet 50 model
- Unable to find a compatible Visual Studio installation
- How to fit non-squared input?
- The form of bboxes is wrong!!!
- Mesh decoder HOT 1
- About the ratioHard Example Mining HOT 3
- Why can't we evaluate during the training? HOT 1
- Pretrained Model HOT 1
- [Refactor] Acclerate training based on MMEngine :rocket:
- How to train with custom dataset by using the pretrained model?
- Dataset
- Evaluation 评估失败,在widerface的三个子集上map值都为0 HOT 1
- What maximum FPS have you achieved?
- Why does the forward pass time become shorter with iterations?
- Why loop 100 times while testing begin in detect.py?
- 用celeba数据集训练的模型,摄像头测试时小脸的框会变大框不准 HOT 1
- How can I train using pth pretrained file? (For transfer learning)
- 用预训练的权重直接训练,为什么loss会这么高
- C++ and TensorRT implementation of yolov5face yolov7face yolov8face
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 pytorch_retinaface.