Skip to content

Commit e0ca206

Browse files
weiyuanyueMilly Wei (from Dev Box)
andauthored
Fix SINet model download URL (#559)
* Fix SINet model URL to use specific commit hash The previous URL pointing to main branch was failing to download. Updated to use a specific commit hash (c76eed22a7d493836189bf892e83ebf8c59152f6) to ensure stable download link. * update * update --------- Co-authored-by: Milly Wei (from Dev Box) <yuanwei@microsoft.com>
1 parent b3b71b9 commit e0ca206

2 files changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/test-report.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,22 @@ jobs:
8888
if (-not [string]::IsNullOrWhiteSpace("${{ secrets.LAF_PUBLISHER_ID }}")) {
8989
echo "LAF_PUBLISHER_ID=${{ secrets.LAF_PUBLISHER_ID }}" >> $env:GITHUB_ENV
9090
}
91+
- name: Create ephemeral nuget config from template
92+
shell: pwsh
93+
run: |
94+
$templatePath = "${{ github.workspace }}\nuget.config.template"
95+
$configPath = "$env:RUNNER_TEMP\nuget.config"
96+
97+
if (-not (Test-Path $templatePath)) {
98+
Write-Error "Template file not found: $templatePath"
99+
exit 1
100+
}
101+
102+
Copy-Item -Path $templatePath -Destination $configPath -Force
103+
echo "EPHEMERAL_NUGET_CONFIG=$configPath" >> $env:GITHUB_ENV
91104
- name: Restore dependencies
92105
if: github.event_name != 'workflow_run'
93-
run: dotnet restore AIDevGallery.sln -r win-${{ matrix.dotnet-arch }} /p:Configuration=${{ matrix.dotnet-configuration }} /p:Platform=${{ matrix.dotnet-arch }} /p:PublishReadyToRun=true /p:SelfContainedIfPreviewWASDK=true
106+
run: dotnet restore AIDevGallery.sln -r win-${{ matrix.dotnet-arch }} /p:Configuration=${{ matrix.dotnet-configuration }} /p:Platform=${{ matrix.dotnet-arch }} /p:PublishReadyToRun=true /p:SelfContainedIfPreviewWASDK=true --configfile "${{ env.EPHEMERAL_NUGET_CONFIG }}"
94107
- name: Build
95108
if: github.event_name != 'workflow_run'
96109
run: |

AIDevGallery/Samples/Definitions/Models/imagemodels.modelgroup.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@
295295
"SINet": {
296296
"Id": "b7cae321-478f-1177-9559-709df5dfe703",
297297
"Name": "SINet",
298-
"Url": "https://huggingface.co/qualcomm/SINet/blob/main/SINet.onnx",
298+
"Url": "https://huggingface.co/qualcomm/SINet/resolve/v0.32.0/SINet.onnx",
299299
"Description": "SINet is a machine learning model that is designed to segment people from close\u2011up portrait images in real time.",
300300
"HardwareAccelerator": [
301301
"CPU",

0 commit comments

Comments
 (0)