Skip to content

Commit 2dbe1cd

Browse files
authored
Merge pull request #109 from kornia/copilot/fix-failing-ci-job
Fix CI: bump kornia/workflows to v1.13.0 for PyTorch 2.5.1 compatibility
2 parents 7e1d94a + f0b7d89 commit 2dbe1cd

File tree

5 files changed

+15
-16
lines changed

5 files changed

+15
-16
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
matrix:
1919
kornia-ref: ['main'] # TODO: coverage check through multiple versions: , 'v0.7.1', 'v0.7.0']
2020

21-
uses: kornia/workflows/.github/workflows/tutorials.yml@v1.10.1
21+
uses: kornia/workflows/.github/workflows/tutorials.yml@v1.13.0
2222
with:
2323
ref: ${{ matrix.kornia-ref }}
2424

@@ -33,10 +33,10 @@ jobs:
3333
kornia-ref: ['main']
3434

3535
steps:
36-
- uses: kornia/workflows/.github/actions/env@v1.10.1
36+
- uses: kornia/workflows/.github/actions/env@v1.13.0
3737
with:
3838
ref: ${{ matrix.kornia-ref }}
39-
extra-deps: torchvision==0.18.1+cpu
39+
extra-deps: torchvision==0.20.1+cpu --find-links https://download.pytorch.org/whl/torchvision
4040

4141
- uses: actions/checkout@v4
4242
with:

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
kornia-ref: ['main']
1616

1717
steps:
18-
- uses: kornia/workflows/.github/actions/env@v1.10.1
18+
- uses: kornia/workflows/.github/actions/env@v1.13.0
1919
with:
2020
ref: ${{ matrix.kornia-ref }}
2121

nbs/color_yuv420_to_rgb.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@
203203
}
204204
],
205205
"source": [
206-
"(y, uv) = read_frame(\"foreman_qcif.yuv\", 0) # using compression classic foreman\n",
206+
"y, uv = read_frame(\"foreman_qcif.yuv\", 0) # using compression classic foreman\n",
207207
"plt.imshow((y.numpy()[0, 0, :, :] * 255.0).astype(np.uint8), cmap=\"gray\")\n",
208208
"plt.figure()\n",
209209
"plt.imshow(((uv.numpy()[0, 0, :, :] + 0.5) * 255.0).astype(np.uint8), cmap=\"gray\")\n",
@@ -254,8 +254,8 @@
254254
"import cv2\n",
255255
"\n",
256256
"loftr = kornia.feature.LoFTR(\"outdoor\")\n",
257-
"(y0, uv0) = read_frame(\"foreman_qcif.yuv\", 175)\n",
258-
"(y1, uv1) = read_frame(\"foreman_qcif.yuv\", 185)\n",
257+
"y0, uv0 = read_frame(\"foreman_qcif.yuv\", 175)\n",
258+
"y1, uv1 = read_frame(\"foreman_qcif.yuv\", 185)\n",
259259
"rgb0 = kornia.color.yuv420_to_rgb(y0, uv0)\n",
260260
"rgb1 = kornia.color.yuv420_to_rgb(y1, uv1)\n",
261261
"\n",

nbs/connected_components.ipynb

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
}
7373
],
7474
"source": [
75-
"#%%captureb\n",
75+
"# %%captureb\n",
7676
"!pip install kornia\n",
7777
"!pip install kornia-rs"
7878
]
@@ -223,11 +223,12 @@
223223
}
224224
],
225225
"source": [
226-
"\n",
227-
"from PIL import Image\n",
228226
"import numpy as np\n",
229-
"img_t = K.image_to_tensor(np.array(Image.open(\"cells_binary.png\").convert(\"L\")))[None, ...] # temp solution until CI updates version\n",
230-
"#img_t = K.io.load_image(\"cells_binary.png\", K.io.ImageLoadType.GRAY32)[None, ...]\n",
227+
"\n",
228+
"img_t = K.image_to_tensor(np.array(Image.open(\"cells_binary.png\").convert(\"L\")))[\n",
229+
" None, ...\n",
230+
"] # temp solution until CI updates version\n",
231+
"# img_t = K.io.load_image(\"cells_binary.png\", K.io.ImageLoadType.GRAY32)[None, ...]\n",
231232
"print(img_t.shape)"
232233
]
233234
},

nbs/image_registration.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -436,13 +436,11 @@
436436
"data_url = \"data:video/mp4;base64,\" + b64encode(mp4).decode()\n",
437437
"\n",
438438
"\n",
439-
"HTML(\n",
440-
" f\"\"\"\n",
439+
"HTML(f\"\"\"\n",
441440
"<video width=400 controls>\n",
442441
" <source src=\"{data_url}\" type=\"video/mp4\">\n",
443442
"</video>\n",
444-
"\"\"\"\n",
445-
")"
443+
"\"\"\")"
446444
]
447445
},
448446
{

0 commit comments

Comments
 (0)