Some lines were truncated since they exceed the maximum allowed length of 500, please use a local Git client to see the full diff.
|
@@ -570,6 +570,37 @@ jobs:
|
|
command: "rm -r << parameters.sg_new_env_name >>"
|
|
command: "rm -r << parameters.sg_new_env_name >>"
|
|
when: on_fail
|
|
when: on_fail
|
|
|
|
|
|
|
|
+ recipe_sanity_tests_pose_estimation:
|
|
|
|
+ machine: true
|
|
|
|
+ resource_class: deci-ai/sg-gpu-on-premise
|
|
|
|
+ parameters:
|
|
|
|
+ sg_existing_env_path:
|
|
|
|
+ type: string
|
|
|
|
+ default: "/env/persistent_env"
|
|
|
|
+ sg_new_env_name:
|
|
|
|
+ type: string
|
|
|
|
+ default: "${CIRCLE_BUILD_NUM}"
|
|
|
|
+ sg_new_env_python_version:
|
|
|
|
+ type: string
|
|
|
|
+ default: "python3.8"
|
|
|
|
+ steps:
|
|
|
|
+ - checkout
|
|
|
|
+ - run:
|
|
|
|
+ name: install requirements and run pose estimation sanity tests
|
|
|
|
+ command: |
|
|
|
|
+ << parameters.sg_new_env_python_version >> -m venv << parameters.sg_new_env_name >>
|
|
|
|
+ source << parameters.sg_new_env_name >>/bin/activate
|
|
|
|
+ python3.8 -m pip install --upgrade setuptools pip wheel
|
|
|
|
+ python3.8 -m pip install -r requirements.txt
|
|
|
|
+ python3.8 -m pip install .
|
|
|
|
+ python3.8 -m pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 torchaudio==0.12.0 --extra-index-url https://download.pytorch.org/whl/cu116
|
|
|
|
+ python3.8 src/super_gradients/examples/train_from_recipe_example/train_from_recipe.py --config-name=coco2017_pose_dekr_w32 experiment_name=shortened_coco2017_pose_dekr_w32_ap_test dataset_params.train_dataloader_params.batch_size=4 dataset_params.val_dataloader_params.batch_size=8 training_hyperparams.max_epochs=1 training_hyperparams.lr_warmup_steps=0 training_hyperparams.average_best_models=False training_hyperparams.max_train_batches=1000 training_hyperparams.max_valid_batches=10
|
|
|
|
+
|
|
|
|
+ - run:
|
|
|
|
+ name: Remove new environment when failed
|
|
|
|
+ command: "rm -r << parameters.sg_new_env_name >>"
|
|
|
|
+ when: on_fail
|
|
|
|
+
|
|
workflows:
|
|
workflows:
|
|
release:
|
|
release:
|
|
jobs:
|
|
jobs:
|
|
@@ -602,10 +633,14 @@ workflows:
|
|
requires:
|
|
requires:
|
|
- recipe_sanity_tests_segmentation
|
|
- recipe_sanity_tests_segmentation
|
|
<<: *release_tag_filter
|
|
<<: *release_tag_filter
|
|
- - recipe_accuracy_tests:
|
|
|
|
|
|
+ - recipe_sanity_tests_pose_estimation:
|
|
requires:
|
|
requires:
|
|
- recipe_sanity_tests_detection
|
|
- recipe_sanity_tests_detection
|
|
<<: *release_tag_filter
|
|
<<: *release_tag_filter
|
|
|
|
+ - recipe_accuracy_tests:
|
|
|
|
+ requires:
|
|
|
|
+ - recipe_sanity_tests_pose_estimation
|
|
|
|
+ <<: *release_tag_filter
|
|
- release_version:
|
|
- release_version:
|
|
py_version: "3.7"
|
|
py_version: "3.7"
|
|
requires:
|
|
requires:
|
|
@@ -615,6 +650,7 @@ workflows:
|
|
- recipe_sanity_tests_classification_pt2
|
|
- recipe_sanity_tests_classification_pt2
|
|
- recipe_sanity_tests_segmentation
|
|
- recipe_sanity_tests_segmentation
|
|
- recipe_sanity_tests_detection
|
|
- recipe_sanity_tests_detection
|
|
|
|
+ - recipe_sanity_tests_pose_estimation
|
|
<<: *release_tag_filter
|
|
<<: *release_tag_filter
|
|
- deci-common/pip_upload_package_from_codeartifact_to_global_pypi:
|
|
- deci-common/pip_upload_package_from_codeartifact_to_global_pypi:
|
|
package_name: "super-gradients"
|
|
package_name: "super-gradients"
|