VoltaML / voltaML

⚡VoltaML is a lightweight library to convert and run your ML/DL deep learning models in high performance inference runtimes like TensorRT, TorchScript, ONNX and TVM.
Apache License 2.0
1.2k stars 40 forks source link

This repo is impossible to install locally for developing purposes #5

Closed hdnh2006 closed 2 years ago

hdnh2006 commented 2 years ago

I have tried almost everything and I have follow the few instructions you provide.

I think the list of requirements should be something like this:

numpy
scipy
pillow
torch==1.12.0 # This is a requirement from you
torchvision==0.13.0
decorator 
attrs
tornado
psutil
#xgboost # Just in case you want to optimize a xgboost model
cloudpickle
onnx
onnxoptimizer
tqdm
#time # There's no a package called like this

# Other packages
nvidia-pyindex  # TensorRT index
nvidia-tensorrt<8.5 # I couldn't install the tensorrt version your repo require
PyYAML
pandas
opencv-python
matplotlib
seaborn
transformers
onnxruntime
apache-tvm

I tried everything and I am still getting the following error: ModuleNotFoundError: No module named 'transformer_deploy'

I think this should be installed using pip install sentence-transformer, but I am still getting some packages are not installed.

VoltaML commented 2 years ago

Hi @hdnh2006. It is easier to pull our docker and work on it. If you try to install it locally, there will be a lot of compatibility issues. Any issues with working with the docker?

We will however update our requirements soon.

hdnh2006 commented 2 years ago

@VoltaML I think there are some issues like a lack of certain files in the repo, but I think I finally could do it.

Your code can be easy integrated into the original yolov5 code. I tried with a private rtsp camera in order to see the improvements of your optimization.

These are my results for yolov5x using just tensorRT: image

And these are the results for yolov5x optimized by voltaML: image

In the case of yolov5s, I don't see improvements, maybe the model is too small and I am trying with bs=1.

These are my results for yolov5s using just tensorRT: image

And these are the results using your optimization: image

As I told you, I'll try another batch size and I'll let you know.

If you need help to improve the documentation, I would love to collaborate.

VoltaML commented 2 years ago

@VoltaML I think there are some issues like a lack of certain files in the repo, but I think I finally could do it.

Your code can be easy integrated into the original yolov5 code. I tried with a private rtsp camera in order to see the improvements of your optimization.

These are my results for yolov5x using just tensorRT: image

And these are the results for yolov5x optimized by voltaML: image

In the case of yolov5s, I don't see improvements, maybe the model is too small and I am trying with bs=1.

These are my results for yolov5s using just tensorRT: image

And these are the results using your optimization: image

As I told you, I'll try another batch size and I'll let you know.

If you need help to improve the documentation, I would love to collaborate.

Hi, @hdnh2006. Great to see that you're benefiting with our repo. Usually small models may not give that big of a difference. But have you compared the performance of voltaML vs vanilla PyTorch for YoloV5s?

Sure, we'd love to collaborate with you on the documentation part. Please shoot me an email at harish@voltaml.com.