Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python Too Slow Inference Speed, Colab T4 Gpu #86

Open
emrahe82 opened this issue Apr 7, 2024 · 0 comments
Open

Python Too Slow Inference Speed, Colab T4 Gpu #86

emrahe82 opened this issue Apr 7, 2024 · 0 comments

Comments

@emrahe82
Copy link

emrahe82 commented Apr 7, 2024

this is the Colab file link used for test

https://colab.research.google.com/drive/1E-gt9d88qhG8bmjtmA1ov6Ciz_eI1UCQ?usp=sharing

i had to play with requirements.txt, and removed all the versions

torchvision
tqdm
opencv_python
torchsummary
torch
numpy

after this modification, able to pip3 install the requirements

then running the below code on Colab T4 Gpu
!python3 test.py --data data/coco.data --weights modelzoo/coco2017-0.241078ap-model.pth --img img/000139.jpg

output is:

load param...
forward time:275.415182ms
/usr/local/lib/python3.10/dist-packages/torch/functional.py:507: UserWarning: torch.meshgrid: in an upcoming release, it will be required to pass the indexing argument. (Triggered internally at ../aten/src/ATen/native/TensorShape.cpp:3549.)
  return _VF.meshgrid(tensors, **kwargs)  # type: ignore[attr-defined]

getting 275 ms inference time on this one, while getting results under 10 ms on optimized Yolov8 & Tensorrt Half Precision
im probably doing something wrong, could you please help on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant