Are you sure you want to delete this access key?
This repository contains a utility python package that helps individuals to train their code using SuperGradients' code.There are two ways you can install it on your local machine - using this GitHub repository or using SuperGradients' private PyPi repository.
While being in the context of your environment, be it venv
or conda
, run:
pip install git+https://github.com/Deci-AI/deci_trainer.git@stable
or
pip install git+ssh://git@github.com/Deci-AI/super_gradients.git@stable
That's it !
Let's assume the release that you would like to install is 0.0.1
. While being in the context of your environment, be
it venv
or conda
, run:
pip install git+https://github.com/Deci-AI/deci_trainer.git@0.0.1
That's it!
Notice that the command above is using http connection. You can alternatively use SSH by running:
pip install git+ssh://git@github.com/Deci-AI/super_gradients.git@feature/DLE-123_my_cool_feature
In order to install from Codeartifact we will connect to the remote repository on AWS and modify our Pip config file.As we have separate repositpries for development and production, the command changes accordingly.
aws sts get-caller-identity
.run:
aws codeartifact login --tool pip --repository deci-packages --domain deci-packages --domain-owner 307629990626 --profile deci-dev
run:
aws codeartifact login --tool pip --repository deci-packages --domain deci-packages --domain-owner 487290820248 --profile deci-prod
pip.conf
config fileAWS CLI configured the access token to our private PyPi repository in your ~/.config/pip/pip.conf
file.If you will open it you should see something like this:
[global]
index-url = https://aws:eyJ2ZXIiOjEsImlzdSI6MTYxNzcwMjc.....5OSwiZW5jIjoiQTcbp1rFfe_Ir_ATZUg@deci-packages-307629990626.d.codeartifact.us-east-1.amazonaws.com/pypi/deci-packages/simple/
We must add extra-
prefix to index-url
so it will become extra-index-url = https://...
.You can do so by manually edit the file with your faivorite text editor, or run the coomand:
(you must have sed
installed)
sed -i 's/^index-url/extra-index-url/g' ~/.config/pip/pip.conf
Model | Dataset | Resolution | Top-1 | Top-5 | Latency b1T4 | Throughout b1T4 |
---|---|---|---|---|---|---|
EfficientNet B0 | ImageNet | 224x224 | 77.62 | 93.49 | 1.16ms | 862fps |
RegNetY200 | ImageNet | 224x224 | 70.88 | 89.35 | -ms | -fps |
RegNetY400 | ImageNet | 224x224 | 74.74 | 91.46 | -ms | -fps |
RegNetY600 | ImageNet | 224x224 | 76.18 | 92.34 | -ms | -fps |
RegNetY800 | ImageNet | 224x224 | 77.07 | 93.26 | -ms | -fps |
ResNet18 | ImageNet | 224x224 | 70.6 | 89.64 | 0.599ms | 1669fps |
ResNet34 | ImageNet | 224x224 | 74.13 | 91.7 | 0.89ms | 1123fps |
ResNet50 | ImageNet | 224x224 | 76.3 | 93.0 | 0.94ms | 1063fps |
MobileNetV3_large-150 epochs | ImageNet | 224x224 | 73.79 | 91.54 | 0.87ms | 1149fps |
MobileNetV3_large-300 epochs | ImageNet | 224x224 | 74.52 | 91.92 | 0.87ms | 1149fps |
MobileNetV3_small | ImageNet | 224x224 | 67.45 | 87.47 | 0.75ms | 1333fps |
MobileNetV2_w1 | ImageNet | 224x224 | 73.08 | 91.1 | 0.58ms | 1724fps |
Model | Dataset | Resolution | mAPval 0.5:0.95 |
Latency b1T4 | Throughout b64T4 |
---|---|---|---|---|---|
YOLOv5 small | CoCo | 640x640 | 37.3 | 10.09ms | 101.85fps |
YOLOv5 medium | CoCo | 640x640 | 45.2 | 17.55ms | 57.66fps |
Model | Dataset | Resolution | mIoU | LatencyT4 | ThroughoutT4 |
---|---|---|---|---|---|
DDRNet23 | Cityscapes | 1024x2048 | 78.65 | -ms | -fps |
DDRNet23 slim | Cityscapes | 1024x2048 | 76.6 | -ms | -fps |
When working on a branch, you will probably want to be able to test your work locally. In order to do so while not adding noise to our PyPi repository, you can install the package directly from GitHub. There are 2 ways doing so - same as there are for cloning - via HTTPS and via SSH.
Assuming your branch name is feature/DLE-123_my_cool_feature
you can either:
pip install git+https://github.com/Deci-AI/deci_trainer.git@feature/DLE-123_my_cool_feature
or using ssh -
pip install git+ssh://git@github.com/Deci-AI/super_gradients.git@feature/DLE-123_my_cool_feature
In order to apply new changes in the code to your local machine:
git push origin feature/DLE-123_my_cool_feature
pip uninstall deci-trainer
pip install git+https://github.com/Deci-AI/deci_trainer.git@feature/DLE-123_my_cool_feature
When you are happy with your change, create a PR to master. After a code review by one of your peers, the branch will be merged into master. That merge will trigger an automation process that will, if successful, push a release candidate version of the package into SuperGradient's AWS Codeartifact repository. The package will be named X.Y.Zrc${CIRCLECI_BUILD}.In addition, the commit will be tagged with a release candidate tag - the package is ready for staging
When we are happy with a release candidate, let's assume 0.0.1rc234
, we will checkout from that tag and create a
Release.The release should be named according to SemVer2 rules. Please make sure that you understand them
before creating a release.
Task | Jira Ticket |
---|---|
CI/CD does not support Patch version change | OPS-143 |
Connect Documentation like this one to be automatically mentioned | OPS-135 |
Add some test to make sure the CI flow is working | OPS-136 |
delete remote package if does not pass the tests | OPS-137 |
Add PR numbers to RC versions in deci-trainer | OPS-143 |
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
super-gradients is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
super-gradients is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
super-gradients is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
super-gradients is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?