Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Commit c0d526e

Browse files
authored
fix examples & add lebeler (#285)
1 parent fd15665 commit c0d526e

6 files changed

Lines changed: 20 additions & 2 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ CI/CD:
55
- .actions/**/*
66
- .azure-*/**/*
77
- .github/**/*
8+
- _dockers/**/*

.github/workflows/labeler-pr.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Label Pull Requests
2+
on: [pull_request_target]
3+
4+
jobs:
5+
triage:
6+
permissions:
7+
contents: read
8+
pull-requests: write
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/labeler@v4
12+
with:
13+
repo-token: "${{ secrets.GITHUB_TOKEN }}"
14+
configuration-path: .github/label-change.yml

course_UvA-DL/12-meta-learning/.meta.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ requirements:
2525
- seaborn
2626
- lightning>=2.0.0
2727
- tensorboard
28+
- scipy
2829
accelerator:
2930
- CPU
3031
- GPU

course_UvA-DL/13-contrastive-learning/SimCLR.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,8 @@
108108
urllib.request.urlretrieve(file_url, file_path)
109109
except HTTPError as e:
110110
print(
111-
"Something went wrong. Please try to download the file from the GDrive folder, or contact the author with the full output including the following error:\n",
111+
"Something went wrong. Please try to download the file from the GDrive folder,"
112+
" or contact the author with the full output including the following error:\n",
112113
e,
113114
)
114115

lightning_examples/cifar10-baseline/baseline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ def on_train_end(self):
243243
logger=CSVLogger(save_dir="logs/"),
244244
)
245245

246-
swa_trainer.fit(swa_model, train_dataloader, val_dataloader=val_dataloader)
246+
swa_trainer.fit(swa_model, train_dataloader, val_dataloaders=val_dataloader)
247247
swa_trainer.test(swa_model, test_dataloader)
248248

249249
# %%

lightning_examples/datamodules/.meta.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ description: This notebook will walk you through how to start using Datamodules.
1111
[here](https://lightning.ai/docs/pytorch/stable/data/datamodule.html).
1212
requirements:
1313
- torchvision
14+
- lightning>=2.0.0
1415
accelerator:
1516
- CPU
1617
- GPU

0 commit comments

Comments
 (0)