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

Fix Yolov7 nuctl function deploy failure #5731

Merged

Conversation

Bassileios
Copy link
Contributor

  • adds wget installation to build directives in yolov7 function-gpu.yaml
  • the deployment fails because it tries to download the onnx model using wget, but is not installed in the base image ultralytics/yolov5:latest

Motivation and context

Fix issue #5730

How has this been tested?

By running the nuctl

#!/bin/bash
# Sample commands to deploy nuclio functions on GPU

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
FUNCTIONS_DIR=${1:-$SCRIPT_DIR}

nuctl create project cvat

shopt -s globstar

func_config="$FUNCTIONS_DIR/onnx/WongKinYiu/yolov7/nuclio/function-gpu.yaml"

echo "$func_config"
func_root=$(dirname "$func_config")
echo "Deploying $(dirname "$func_root") function..."
nuctl deploy --project-name cvat --path "$func_root" \
    --volume "$SCRIPT_DIR/common:/opt/nuclio/common" \
    --file "$func_config" --platform local


nuctl get function

Checklist

  • I submit my changes into the develop branch
  • I have added a description of my changes into the CHANGELOG file
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

- adds wget installation to build directives in yolov7 function-gpu.yaml
-  the deploy fails because it tries to download the onnx model using
 wget, but is not installed in the base image ultralytics/yolov5:latest
@nmanovic
Copy link
Contributor

@Bassileios , thanks for the contribution!

@nmanovic nmanovic merged commit afe931c into cvat-ai:develop Mar 27, 2023
mikhail-treskin pushed a commit to retailnext/cvat that referenced this pull request Jul 1, 2023
- adds wget installation to build directives in yolov7 function-gpu.yaml
- the deployment fails because it tries to download the onnx model using
wget, but is not installed in the base image ultralytics/yolov5:latest

### Motivation and context
Fix issue cvat-ai#5730
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

Successfully merging this pull request may close these issues.

None yet

3 participants